diff options
-rw-r--r-- | c/src/exec/score/cpu/m68k/cpu_asm.s | 7 |
1 files 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 |