Hello All,

this clears MIPS_HFLAG_BMASK also for ErrorEPC, like it is done
already for EPC and DEPC.


Thiemo


diff -urpN qemu-work/target-mips/helper.c qemu/target-mips/helper.c
--- qemu-work/target-mips/helper.c      2006-02-18 00:40:44.000000000 +0000
+++ qemu/target-mips/helper.c   2006-02-15 14:00:33.000000000 +0000
@@ -325,6 +325,7 @@ void do_interrupt (CPUState *env)
              * come back to the jump
              */
             env->CP0_ErrorEPC = env->PC - 4;
+            env->hflags &= ~MIPS_HFLAG_BMASK;
         } else {
             env->CP0_ErrorEPC = env->PC;
         }


_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to