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

Eric DeVolder posted 1 patch 1 week, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261110143511.479225-1-eric._5Fdevolder@yahoo.com
Maintainers: Laurent Vivier <laurent@vivier.eu>
target/m68k/op_helper.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] target/m68k: Clear SR[T] on ColdFire exception entry
Posted by Eric DeVolder 1 week, 5 days ago
Clear the SR[T] in cf_interrupt_all() to disable tracing, like
m68k_interrupt_all() does.

Signed-off-by: Eric DeVolder <eric_devolder@yahoo.com>
---
 target/m68k/op_helper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/m68k/op_helper.c b/target/m68k/op_helper.c
index 38f7a68981..65eb69f2b4 100644
--- a/target/m68k/op_helper.c
+++ b/target/m68k/op_helper.c
@@ -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;
-- 
2.53.0