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/cpu.c | |
parent | 7bc8e0c967a4ef77657174d28af775691e18b4ce (diff) |
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/cpu.c')
-rw-r--r-- | target-mips/cpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target-mips/cpu.c b/target-mips/cpu.c index 37880d20e0..bbfee4509f 100644 --- a/target-mips/cpu.c +++ b/target-mips/cpu.c @@ -58,7 +58,9 @@ static bool mips_cpu_has_work(CPUState *cs) check for interrupts that can be taken. */ if ((cs->interrupt_request & CPU_INTERRUPT_HARD) && cpu_mips_hw_interrupts_pending(env)) { - has_work = true; + if (cpu_mips_hw_interrupts_enabled(env)) { + has_work = true; + } } /* MIPS-MT has the ability to halt the CPU. */ |