]> 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)
commit4c7c8d3ab973bd9c487696128fece77f2d7bc272
treed716bdc3c0084dff44616044bed296b1d3c6853c
parent6ed11da90749fd2696874dad312292b164f6552d
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