aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorJordan Niethe <[email protected]>2020-05-06 13:40:39 +1000
committerMichael Ellerman <[email protected]>2020-05-19 00:10:38 +1000
commit7fccfcfba04f9cb46438f368755d368f6c57f3a0 (patch)
treefa9b92c62b0efd6f0d84019e701abb6df206e852 /arch/powerpc/lib/code-patching.c
parent6c7a4f0a9f66fc7fdc6e208559e5d562f53e0991 (diff)
powerpc/xmon: Move insertion of breakpoint for xol'ing
When a new breakpoint is created, the second instruction of that breakpoint is patched with a trap instruction. This assumes the length of the instruction is always the same. In preparation for prefixed instructions, remove this assumption. Insert the trap instruction at the same time the first instruction is inserted. Signed-off-by: Jordan Niethe <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Reviewed-by: Alistair Popple <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions