Skip to contentSkip to conversation

target/m68k: Clear SR[T] on ColdFire exception entry

PATCH New Eric DeVolder 1 participant 1 message Nov 10 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 target/m68k: Clear SR[T] on ColdFire exception entry

Clear the SR[T] in cf_interrupt_all() to disable tracing, like m68k_interrupt_all() does.

---
 target/m68k/op_helper.c | 1 +
 1 file changed, 1 insertion(+)
target/m68k/op_helper.c +1 -0
index 38f7a68981..65eb69f2b4 100644
@@ -240,6 +240,7 @@ static void cf_interrupt_all(CPUM68KState *env, int is_hw)
     fmt |= sr;
 
     env->sr |= SR_S;
+    env->sr &= ~SR_T;
     if (is_hw) {
         env->sr = (env->sr & ~SR_I) | (env->pending_level << SR_I_SHIFT);
         env->sr &= ~SR_M;
Signature · 1 line
2.53.0