Commit 7ebab6991081f9fabc207b778f0ae154190caca1
1 parent
697584ab
Fix interrupt masking (Ralf Baechle
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1552 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
cpu-exec.c
... | ... | @@ -307,7 +307,7 @@ int cpu_exec(CPUState *env1) |
307 | 307 | #elif defined(TARGET_MIPS) |
308 | 308 | if ((interrupt_request & CPU_INTERRUPT_HARD) && |
309 | 309 | (env->CP0_Status & (1 << CP0St_IE)) && |
310 | - (env->CP0_Cause & 0x0000FF00) && | |
310 | + (env->CP0_Status & env->CP0_Cause & 0x0000FF00) && | |
311 | 311 | !(env->hflags & MIPS_HFLAG_EXL) && |
312 | 312 | !(env->hflags & MIPS_HFLAG_ERL) && |
313 | 313 | !(env->hflags & MIPS_HFLAG_DM)) { | ... | ... |