aboutsummaryrefslogtreecommitdiff
path: root/target-m68k/op_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-m68k/op_helper.c')
-rw-r--r--target-m68k/op_helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-m68k/op_helper.c b/target-m68k/op_helper.c
index f5593eca0c..8086238db4 100644
--- a/target-m68k/op_helper.c
+++ b/target-m68k/op_helper.c
@@ -148,6 +148,7 @@ void do_interrupt(int is_hw)
env->sr |= SR_S;
if (is_hw) {
env->sr = (env->sr & ~SR_I) | (env->pending_level << SR_I_SHIFT);
+ env->sr &= ~SR_M;
}
/* Jump to vector. */
env->pc = ldl_kernel(env->vbr + vector);