From e1d9a50836b162d493afc9cb90610d8224a47c7e Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 2 Jul 2005 15:29:46 +0000 Subject: [PATCH] use mask in C0_status (Ralf Baechle) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1478 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-mips/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index bdfe7d057c..9da31849c9 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -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;