]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commitdiff
TLB reload exception vector (Ralf Baechle)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 2 Jul 2005 15:35:03 +0000 (15:35 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 2 Jul 2005 15:35:03 +0000 (15:35 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1481 c046a42c-6fe2-441c-8c8c-71466251a162

target-mips/helper.c

index aa97e8229f730c9df38036d712f4db2516a256e7..96e3100da73e2d4036fdc488c276e407ae0c43e4 100644 (file)
@@ -417,6 +417,9 @@ void do_interrupt (CPUState *env)
         goto set_EPC;
     case EXCP_TLBS:
         cause = 3;
+        if (env->error_code == 1 && !(env->hflags & MIPS_HFLAG_EXL))
+            offset = 0x000;
+        goto set_EPC;
     set_EPC:
         if (env->CP0_Status & (1 << CP0St_BEV)) {
             pc = 0xBFC00200;