Skip to contentSkip to conversation

target/xtensa: add qemu_cpu_kick to xtensa_runstall

PATCH New Max Filippov 1 participant 1 message Jan 22, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/xtensa: add qemu_cpu_kick to xtensa_runstall

When xtensa_runstall is called to unstall a core it needs to kick it after clearing runstall flag, otherwise the core doesn't start immediately. There's also no point in clearing CPU_INTERRUPT_HALT, drop it.

---
 target/xtensa/helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/xtensa/helper.c +1 -1
index 323c47a7fb54..bcf2f20d4858 100644
@@ -252,7 +252,7 @@ void xtensa_runstall(CPUXtensaState *env, bool runstall)
     if (runstall) {
         cpu_interrupt(cpu, CPU_INTERRUPT_HALT);
     } else {
-        cpu_reset_interrupt(cpu, CPU_INTERRUPT_HALT);
+        qemu_cpu_kick(cpu);
     }
 }
 #endif
Signature · 1 line
2.11.0