From 80868140c3a6350471c02fabe1fbf4a2a2712456 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 29 Nov 1997 17:51:27 +0000 Subject: [PATCH] Patch from Chris Johns to filter out the trace bit on CPU models which have hardware support for a separate interrupt stack. --- c/src/exec/score/cpu/m68k/cpu_asm.s | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/c/src/exec/score/cpu/m68k/cpu_asm.s b/c/src/exec/score/cpu/m68k/cpu_asm.s index 148937e822..b3af369bba 100644 --- a/c/src/exec/score/cpu/m68k/cpu_asm.s +++ b/c/src/exec/score/cpu/m68k/cpu_asm.s @@ -198,11 +198,14 @@ bframe: clrl SYM (_ISR_Signals_to_thread_executing) movec msp,a0 | a0 = master stack pointer movew #0,a0@- | push format word movel # SYM (_ISR_Dispatch),a0@- | push return addr - movew a0@(6+SR_OFFSET),a0@- | push thread sr + | filter out the trace bit to stop single step debugging breaking + movew a0@(6+SR_OFFSET),d0 + andw #0x7FFF,d0 + movew d0,a0@- | push thread sr movec a0,msp | set master stack pointer #else -| filter out the trace bit to stop single step debugging breaking + | filter out the trace bit to stop single step debugging breaking movew a7@(16+SR_OFFSET),d0 andw #0x7FFF,d0 movew d0,sr