]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: Move insertion of breakpoint for xol'ing
authorJordan Niethe <jniethe5@gmail.com>
Wed, 6 May 2020 03:40:39 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:38 +0000 (00:10 +1000)
commit7c1911d3d78f2178121d7c0c45e3a79610fbf62e
treefa9b92c62b0efd6f0d84019e701abb6df206e852
parent0ee5023c86da1cc5411491c584660565d862dfa1
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 <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Link: https://lore.kernel.org/r/20200506034050.24806-20-jniethe5@gmail.com
arch/powerpc/xmon/xmon.c