aboutsummaryrefslogtreecommitdiff
path: root/target-mips/op_helper.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-02 15:29:46 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-02 15:29:46 +0000
commite1d9a50836b162d493afc9cb90610d8224a47c7e (patch)
treee04b00d1012af4e6e62908d97934489cc821202e /target-mips/op_helper.c
parent568b600d858a7bcb94ed4520a13ad1629750e03f (diff)
use mask in C0_status (Ralf Baechle)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1478 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op_helper.c')
-rw-r--r--target-mips/op_helper.c2
1 files changed, 1 insertions, 1 deletions
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;