qemu-e2k/target-mips
Aurelien Jarno 4cdc1cd137 target-mips: fix host CPU consumption when guest is idle
When the CPU is in wait state, do not wake-up if an interrupt can't be
taken. This avoid host CPU running at 100% if a device (e.g. timer) has
an interrupt line left enabled.

Also factorize code to check if interrupts are enabled in
cpu_mips_hw_interrupts_pending().

Based on a patch from Edgar E. Iglesias <edgar.iglesias@gmail.com>

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2010-12-27 00:58:06 +01:00
..
cpu.h target-mips: fix host CPU consumption when guest is idle 2010-12-27 00:58:06 +01:00
exec.h target-mips: fix host CPU consumption when guest is idle 2010-12-27 00:58:06 +01:00
helper.c mips: Add support for VInt and VEIC irq modes 2010-08-06 12:21:16 +02:00
helper.h target-mips: fix translation of MT instructions 2010-12-22 11:14:10 +01:00
machine.c
mips-defs.h
op_helper.c target-mips: fix translation of MT instructions 2010-12-22 11:14:10 +01:00
TODO
translate_init.c target-xxx: Use fprintf_function (format checking) 2010-10-30 08:01:59 +00:00
translate.c target-mips: fix translation of MT instructions 2010-12-22 11:14:10 +01:00