diff options
author | Leon Alrae <leon.alrae@imgtec.com> | 2015-09-14 13:58:23 +0100 |
---|---|---|
committer | Leon Alrae <leon.alrae@imgtec.com> | 2015-10-29 16:16:44 +0000 |
commit | 71ca034a0dee69f77c8ac6ea7d21e5b6a0b0d836 (patch) | |
tree | dbd204a0943483622c61f8398b61a8e1af741e51 /target-mips/helper.c | |
parent | 7bc8e0c967a4ef77657174d28af775691e18b4ce (diff) | |
download | qemu-71ca034a0dee69f77c8ac6ea7d21e5b6a0b0d836.zip qemu-71ca034a0dee69f77c8ac6ea7d21e5b6a0b0d836.tar.gz qemu-71ca034a0dee69f77c8ac6ea7d21e5b6a0b0d836.tar.bz2 |
target-mips: move the test for enabled interrupts to a separate function
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'target-mips/helper.c')
-rw-r--r-- | target-mips/helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c index 01c4461..2d86323 100644 --- a/target-mips/helper.c +++ b/target-mips/helper.c @@ -759,7 +759,8 @@ bool mips_cpu_exec_interrupt(CPUState *cs, int interrupt_request) MIPSCPU *cpu = MIPS_CPU(cs); CPUMIPSState *env = &cpu->env; - if (cpu_mips_hw_interrupts_pending(env)) { + if (cpu_mips_hw_interrupts_enabled(env) && + cpu_mips_hw_interrupts_pending(env)) { /* Raise it */ cs->exception_index = EXCP_EXT_INTERRUPT; env->error_code = 0; |