qemu-patch-raspberry4/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 target-mips: rename CP0_LLAddr into lladdr 2009-11-22 14:12:13 +01:00
mips-defs.h MIPS: Initial support of fulong mini pc (CPU definition) 2010-06-29 23:07:52 +02:00
op_helper.c target-mips: fix translation of MT instructions 2010-12-22 11:14:10 +01:00
TODO target-mips: add copyright notice for mips16 work 2009-12-13 20:20:20 +01:00
translate.c target-mips: fix translation of MT instructions 2010-12-22 11:14:10 +01:00
translate_init.c target-xxx: Use fprintf_function (format checking) 2010-10-30 08:01:59 +00:00