* [Qemu-devel] [PATCH] target/xtensa: add qemu_cpu_kick to xtensa_runstall
@ 2019-01-22 21:25 Max Filippov
0 siblings, 0 replies; only message in thread
From: Max Filippov @ 2019-01-22 21:25 UTC (permalink / raw)
To: qemu-devel; +Cc: Max Filippov
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.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
target/xtensa/helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c
index 323c47a7fb54..bcf2f20d4858 100644
--- a/target/xtensa/helper.c
+++ b/target/xtensa/helper.c
@@ -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
--
2.11.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-22 21:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-22 21:25 [Qemu-devel] [PATCH] target/xtensa: add qemu_cpu_kick to xtensa_runstall Max Filippov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).