diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-01 13:24:48 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-17 19:00:55 +0200 |
| commit | dcb46ecb2e90d532fcdc04702c92e732a0ef77e8 (patch) | |
| tree | d9c2f9ae6ef3d470c29ccf7604f42189b346bb86 /hw/core/cpu-common.c | |
| parent | 61d996da508fe4082f1cbfd9b51c8c47f535a993 (diff) | |
| download | focaccia-qemu-dcb46ecb2e90d532fcdc04702c92e732a0ef77e8.tar.gz focaccia-qemu-dcb46ecb2e90d532fcdc04702c92e732a0ef77e8.zip | |
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>
Diffstat (limited to 'hw/core/cpu-common.c')
| -rw-r--r-- | hw/core/cpu-common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c index 42463e6258..41a339903c 100644 --- a/hw/core/cpu-common.c +++ b/hw/core/cpu-common.c @@ -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) |