tree 1e50046a2daa30da849a88b3ec562a410ebe6f80
parent e378cc16b0d3c1610857c4444345907020e03ece
author Paul Mackerras <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:24:17 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:24:17 -0700
[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]>
ppc/kernel/traps.c | 1 +
1 files changed, 1 insertion(+)
Index: arch/ppc/kernel/traps.c
===================================================================
--- 0947c9f923f985319e81be3f9fe2018571e53d6b/arch/ppc/kernel/traps.c
(mode:100644 sha1:aec225b402ae5f0558619908596bba3c2cf3943a)
+++ 1e50046a2daa30da849a88b3ec562a410ebe6f80/arch/ppc/kernel/traps.c
(mode:100644 sha1:002322a1f3cedd02ab18a25fe135dfedeebc0bc6)
@@ -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