powerpc/hw_breakpoint: move instruction stepping out of hw_breakpoint_handler()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 28 Jun 2019 15:55:52 +0000 (15:55 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Aug 2019 11:22:10 +0000 (21:22 +1000)
commit658d029df0bce6472c94b724ca54d74bc6659c2e
treed716bdc3c0084dff44616044bed296b1d3c6853c
parent65e701b2d2a8593c44c8855aee2e087be7e11e75
powerpc/hw_breakpoint: move instruction stepping out of hw_breakpoint_handler()

On 8xx, breakpoints stop after executing the instruction, so
stepping/emulation is not needed. Move it into a sub-function and
remove the #ifdefs.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f8cdc3f1c66ad3c43ebc568abcc6c39ed4676284.1561737231.git.christophe.leroy@c-s.fr
arch/powerpc/kernel/hw_breakpoint.c