Skip to content

Commit

Permalink
Clear BD slot on next exception if appropriate.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2777 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
ths committed May 7, 2007
1 parent b4f0a31 commit 0a6de75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target-mips/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ void do_interrupt (CPUState *env)
env->hflags |= MIPS_HFLAG_DM;
env->hflags &= ~MIPS_HFLAG_UM;
/* EJTAG probe trap enable is not implemented... */
if (!(env->CP0_Status & (1 << CP0St_EXL)))
env->CP0_Cause &= ~(1 << CP0Ca_BD);
env->PC = (int32_t)0xBFC00480;
break;
case EXCP_RESET:
Expand All @@ -324,6 +326,8 @@ void do_interrupt (CPUState *env)
}
env->CP0_Status |= (1 << CP0St_ERL) | (1 << CP0St_BEV);
env->hflags &= ~MIPS_HFLAG_UM;
if (!(env->CP0_Status & (1 << CP0St_EXL)))
env->CP0_Cause &= ~(1 << CP0Ca_BD);
env->PC = (int32_t)0xBFC00000;
break;
case EXCP_MCHECK:
Expand Down

0 comments on commit 0a6de75

Please sign in to comment.