The generation of events are not indications of work to be done and importantly for the case of WFI instructions not a reason to wake up. Remove the check.
Fixes: d238858bff6 (target/arm: Implement WFE, SEV and SEVONPEND for Cortex-M) Signed-off-by: Alex Bennée <[email protected]> --- target/arm/cpu.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 98d09ac0656..d51599dfdab 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -144,12 +144,6 @@ static bool arm_cpu_has_work(CPUState *cs) { ARMCPU *cpu = ARM_CPU(cs); - if (arm_feature(&cpu->env, ARM_FEATURE_M)) { - if (cpu->env.event_register) { - return true; - } - } - return (cpu->power_state != PSCI_OFF) && cpu_test_interrupt(cs, CPU_INTERRUPT_FIQ | CPU_INTERRUPT_HARD -- 2.47.3
