aboutsummaryrefslogtreecommitdiff
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 2572050bb3..dc51814677 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -398,7 +398,7 @@ void do_interrupt (CPUState *env)
if (env->CP0_Status & (1 << CP0St_BEV)) {
env->PC = (int32_t)0xBFC00200;
} else {
- env->PC = (int32_t)0x80000000;
+ env->PC = (int32_t)(env->CP0_EBase & ~0x3ff);
}
env->PC += offset;
env->CP0_Cause = (env->CP0_Cause & ~0x7C) | (cause << 2);