cpus: remove TCG-ism from cpu_exit()
Now that TCG has its own kick function, make cpu_exit() do the right kick for all accelerators. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
61d996da50
commit
dcb46ecb2e
1 changed files with 1 additions and 3 deletions
|
|
@ -76,9 +76,7 @@ void cpu_exit(CPUState *cpu)
|
|||
{
|
||||
/* Ensure cpu_exec will see the reason why the exit request was set. */
|
||||
qatomic_store_release(&cpu->exit_request, true);
|
||||
/* Ensure cpu_exec will see the exit request after TCG has exited. */
|
||||
smp_wmb();
|
||||
qatomic_set(&cpu->neg.icount_decr.u16.high, -1);
|
||||
qemu_cpu_kick(cpu);
|
||||
}
|
||||
|
||||
static int cpu_common_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue