tree b75edb384b88229e2a4373ab624fc81f5f554cac
parent a82e1e597758597fb7431e82f040b0b05d640ebd
author Paul Mackerras <[EMAIL PROTECTED]> Tue Apr 12 08:24:51 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:24:51 2005
[PATCH] ppc32: fix single-stepping of emulated instructions
On ppc, we emulate instructions that cause alignment exceptions. If we are
single-stepping an instruction and it causes an alignment exception, we
will currently do the next instruction as well before taking the
single-step exception. This patch fixes that, so we take the single-step
exception after emulating the instruction.
Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
traps.c | 1 +
1 files changed, 1 insertion(+)
Index: arch/ppc/kernel/traps.c
===================================================================
--- 84a2658515c58c5a713000cd3b5671e5a6df99ba/arch/ppc/kernel/traps.c
(mode:100644 sha1:4deea8aa11392dc23745cc73f4eb765d0012a162)
+++ b75edb384b88229e2a4373ab624fc81f5f554cac/arch/ppc/kernel/traps.c
(mode:100644 sha1:96f7b320e289025286994f4a5e367e394e57caa7)
@@ -679,6 +679,7 @@
fixed = fix_alignment(regs);
if (fixed == 1) {
regs->nip += 4; /* skip over emulated instruction */
+ emulate_single_step(regs);
return;
}
if (fixed == -EFAULT) {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html