Skip to contentSkip to conversation

Clear BMASK also for ErrorEPC

PATCH New Thiemo Seufer 1 participant 1 message Feb 21, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Clear BMASK also for ErrorEPC

Hello All,

this clears MIPS_HFLAG_BMASK also for ErrorEPC, like it is done already for EPC and DEPC.

Thiemo

target-mips/helper.c +1 -0
diff -urpN qemu-work/target-mips/helper.c qemu/target-mips/helper.c
@@ -325,6 +325,7 @@ void do_interrupt (CPUState *env)
              * come back to the jump
              */
             env->CP0_ErrorEPC = env->PC - 4;
+            env->hflags &= ~MIPS_HFLAG_BMASK;
         } else {
             env->CP0_ErrorEPC = env->PC;
         }