]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit178c2ed852855bd8a155ffde635f5b34c5d7d991
treed716bdc3c0084dff44616044bed296b1d3c6853c
parent83a7c7b6bb5f74aa5fe18064ff4c7ae47f1be7c4
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