From: Philippe Mathieu-Daudé Date: Tue, 26 Aug 2025 04:54:12 +0000 (+0200) Subject: accel/tcg: Use cpu_is_stopped() helper to access CPUState::stopped X-Git-Tag: v10.2.0-rc1~26^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc2380b5686e8233f406a3e43be278fd9a2603e9;p=thirdparty%2Fqemu.git accel/tcg: Use cpu_is_stopped() helper to access CPUState::stopped Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250925025520.71805-5-philmd@linaro.org> --- diff --git a/accel/tcg/tcg-accel-ops-rr.c b/accel/tcg/tcg-accel-ops-rr.c index 2fb4643997..f84342e044 100644 --- a/accel/tcg/tcg-accel-ops-rr.c +++ b/accel/tcg/tcg-accel-ops-rr.c @@ -197,7 +197,7 @@ static void *rr_cpu_thread_fn(void *arg) qemu_guest_random_seed_thread_part2(cpu->random_seed); /* wait for initial kick-off after machine start */ - while (first_cpu->stopped) { + while (cpu_is_stopped(first_cpu)) { qemu_cond_wait_bql(first_cpu->halt_cond); /* process any pending work */