Skip to content

Commit

Permalink
target/xtensa: add qemu_cpu_kick to xtensa_runstall
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jcmvbkbc committed Jan 24, 2019
1 parent 8b7a3e1 commit 6230dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/xtensa/helper.c
Expand Up @@ -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

0 comments on commit 6230dac

Please sign in to comment.