aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target-mips/helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index 0cda1ef547..d48c32b221 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -339,9 +339,11 @@ void do_interrupt (CPUState *env)
/* XXX: TODO: manage defered watch exceptions */
goto set_EPC;
case EXCP_AdEL:
- case EXCP_AdES:
cause = 4;
goto set_EPC;
+ case EXCP_AdES:
+ cause = 5;
+ goto set_EPC;
case EXCP_TLBL:
cause = 2;
if (env->error_code == 1 && !(env->CP0_Status & (1 << CP0St_EXL)))