Fix handling of ADES exceptions.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2623 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
ths 2007-04-06 19:31:06 +00:00
parent f41c52f170
commit beb811bdd6
1 changed files with 3 additions and 1 deletions

View File

@ -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)))