diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-01-14 00:57:24 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-01-24 10:44:25 -0800 |
commit | 6230dac89b19d50567c44434b37a4c48a84ec200 (patch) | |
tree | d69d32eb3adedab8281898ecb3c968a0012038cd /target/xtensa | |
parent | 8b7a3e1e5434b55d7710071b00af97c7086cab7a (diff) | |
download | qemu-6230dac89b19d50567c44434b37a4c48a84ec200.zip |
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.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target/xtensa')
-rw-r--r-- | target/xtensa/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c index 323c47a7fb..bcf2f20d48 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 |