Commit e1d9a50836b162d493afc9cb90610d8224a47c7e
1 parent
568b600d
use mask in C0_status (Ralf Baechle)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1478 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-mips/op_helper.c
... | ... | @@ -363,7 +363,7 @@ void do_mtc0 (int reg, int sel) |
363 | 363 | !(env->hflags & MIPS_HFLAG_EXL) && |
364 | 364 | !(env->hflags & MIPS_HFLAG_ERL) && |
365 | 365 | !(env->hflags & MIPS_HFLAG_DM) && |
366 | - (env->CP0_Cause & mask)) { | |
366 | + (env->CP0_Status & env->CP0_Cause & mask)) { | |
367 | 367 | if (logfile) |
368 | 368 | fprintf(logfile, "Raise pending IRQs\n"); |
369 | 369 | env->interrupt_request |= CPU_INTERRUPT_HARD; | ... | ... |