summaryrefslogtreecommitdiff
path: root/target-mips/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-mips/helper.c')
-rw-r--r--target-mips/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index dc51814677..0cda1ef547 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -387,7 +387,6 @@ void do_interrupt (CPUState *env)
come back to the jump. */
env->CP0_EPC = env->PC - 4;
env->CP0_Cause |= (1 << CP0Ca_BD);
- env->hflags &= ~MIPS_HFLAG_BMASK;
} else {
env->CP0_EPC = env->PC;
env->CP0_Cause &= ~(1 << CP0Ca_BD);
@@ -395,6 +394,7 @@ void do_interrupt (CPUState *env)
env->CP0_Status |= (1 << CP0St_EXL);
env->hflags &= ~MIPS_HFLAG_UM;
}
+ env->hflags &= ~MIPS_HFLAG_BMASK;
if (env->CP0_Status & (1 << CP0St_BEV)) {
env->PC = (int32_t)0xBFC00200;
} else {