aboutsummaryrefslogtreecommitdiff
path: root/cpu-exec.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar@axis.com>2010-08-06 12:21:16 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2010-08-06 12:21:16 +0200
commit138afb024bbd115553a344e06d93011a283d1316 (patch)
treeebd809dcf604b85e3099678522c1e43890c4394b /cpu-exec.c
parentd087bb3e38fbb705ae65c55457b9ef3e0a5d2511 (diff)
downloadqemu-138afb024bbd115553a344e06d93011a283d1316.zip
qemu-138afb024bbd115553a344e06d93011a283d1316.tar.gz
qemu-138afb024bbd115553a344e06d93011a283d1316.tar.bz2
mips: Add support for VInt and VEIC irq modes
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r--cpu-exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu-exec.c b/cpu-exec.c
index d170566..dbdfdcc 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -448,7 +448,7 @@ int cpu_exec(CPUState *env1)
}
#elif defined(TARGET_MIPS)
if ((interrupt_request & CPU_INTERRUPT_HARD) &&
- (env->CP0_Status & env->CP0_Cause & CP0Ca_IP_mask) &&
+ cpu_mips_hw_interrupts_pending(env) &&
(env->CP0_Status & (1 << CP0St_IE)) &&
!(env->CP0_Status & (1 << CP0St_EXL)) &&
!(env->CP0_Status & (1 << CP0St_ERL)) &&