use mask in C0_status (Ralf Baechle)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 2 Jul 2005 15:29:46 +0000 (15:29 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 2 Jul 2005 15:29:46 +0000 (15:29 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1478 c046a42c-6fe2-441c-8c8c-71466251a162

target-mips/op_helper.c

index bdfe7d057c61b9bf0a723d2ff64315aa4530e4be..9da31849c9c818f5d2e57b7d9719586b96d7fce7 100644 (file)
@@ -363,7 +363,7 @@ void do_mtc0 (int reg, int sel)
             !(env->hflags & MIPS_HFLAG_EXL) &&
             !(env->hflags & MIPS_HFLAG_ERL) &&
             !(env->hflags & MIPS_HFLAG_DM) && 
-            (env->CP0_Cause & mask)) {
+            (env->CP0_Status & env->CP0_Cause & mask)) {
             if (logfile)
                 fprintf(logfile, "Raise pending IRQs\n");
             env->interrupt_request |= CPU_INTERRUPT_HARD;