diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-05 23:21:37 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-05 23:21:37 +0000 |
commit | c53f4a62e3a87b4200d7245ae273a4d187394779 (patch) | |
tree | a64825443fca331ff9fc180417c127a03ebe70c8 /target-mips/helper.c | |
parent | 5a63bcb2d27675a3fc2c5bc8a8c323e5c756e749 (diff) |
fix branch delay slot cornercases.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2615 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/helper.c')
-rw-r--r-- | target-mips/helper.c | 2 |
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 { |