diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-01 16:13:26 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-04 14:43:45 +0200 |
commit | 6bb8f2c51b28ce35c83ac4e53bbd85ef37d787c4 (patch) | |
tree | e5f81b8942458503330e8334a2f33beb2b07b0eb | |
parent | 3955a104bca098b820a0b57bb411281ae5cac498 (diff) | |
download | qemu-6bb8f2c51b28ce35c83ac4e53bbd85ef37d787c4.zip qemu-6bb8f2c51b28ce35c83ac4e53bbd85ef37d787c4.tar.gz qemu-6bb8f2c51b28ce35c83ac4e53bbd85ef37d787c4.tar.bz2 |
accel/tcg: Clear exit_request once in tcg_cpu_exec()
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250701144017.43487-62-philmd@linaro.org>
-rw-r--r-- | accel/tcg/tcg-accel-ops-mttcg.c | 1 | ||||
-rw-r--r-- | accel/tcg/tcg-accel-ops.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/accel/tcg/tcg-accel-ops-mttcg.c b/accel/tcg/tcg-accel-ops-mttcg.c index dfcee30..337b993 100644 --- a/accel/tcg/tcg-accel-ops-mttcg.c +++ b/accel/tcg/tcg-accel-ops-mttcg.c @@ -113,7 +113,6 @@ static void *mttcg_cpu_thread_fn(void *arg) } } - qatomic_set_mb(&cpu->exit_request, 0); qemu_wait_io_event(cpu); } while (!cpu->unplug || cpu_can_run(cpu)); diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c index 6116644..71776bc 100644 --- a/accel/tcg/tcg-accel-ops.c +++ b/accel/tcg/tcg-accel-ops.c @@ -80,6 +80,9 @@ int tcg_cpu_exec(CPUState *cpu) cpu_exec_start(cpu); ret = cpu_exec(cpu); cpu_exec_end(cpu); + + qatomic_set_mb(&cpu->exit_request, 0); + return ret; } |