summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-06 19:31:06 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-06 19:31:06 +0000
commitbeb811bdd693ff1e2fe5c6c81e65b0b8e9053755 (patch)
treeca692e57b030fcca923fa279175d525cc65f515b
parentf41c52f17031325652387086006c5847bc703abd (diff)
downloadfocaccia-qemu-beb811bdd693ff1e2fe5c6c81e65b0b8e9053755.tar.gz
focaccia-qemu-beb811bdd693ff1e2fe5c6c81e65b0b8e9053755.zip
Fix handling of ADES exceptions.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2623 c046a42c-6fe2-441c-8c8c-71466251a162
-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)))