MIPS Release 6 requires that the CPU blocked on WAIT instruction can be woken up by an interrupt, even if interrupts are not enabled.
First patch does not contain any functional change, it just moves the "are interrupts enabled?" part into separate cpu_mips_hw_interrupts_enabled() function. Second patch allows the R6 CPU to resume the execution regardless of cpu_mips_hw_interrupts_enabled(). Leon Alrae (2): target-mips: move the test for enabled interrupts to a separate function target-mips: implement the CPU wake-up on non-enabled interrupts in R6 target-mips/cpu.c | 9 ++++++--- target-mips/cpu.h | 29 +++++++++++++++-------------- target-mips/helper.c | 3 ++- 3 files changed, 23 insertions(+), 18 deletions(-) -- 2.1.0