@samitouri / QOSamiQemu / commits / 0ffd9742fb

accel/tcg: Move cpu_exec_step_atomic() out of 'exec/cpu-common.h'

Move the TCG-specific cpu_exec_step_atomic() declaration out of the generic "exec/cpu-common.h" header, to the recently created "accel/tcg/cpu-loop.h" one. Include "accel/tcg/cpu-loop.h" where appropriate. Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260617171438.75914-6-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Jun 16, 2026 at 17:53 UTC 0ffd9742fbfc957605753fcce0a28665979a491d
4 files changed +4 -2
accel/tcg/tcg-accel-ops-mttcg.c
+1
@@ -32,6 +32,7 @@
32 #include "qemu/notify.h"
33 #include "qemu/guest-random.h"
34 #include "hw/core/boards.h"
35 +#include "accel/tcg/cpu-loop.h"
36 #include "tcg/startup.h"
37 #include "tcg-accel-ops.h"
38 #include "tcg-accel-ops-mttcg.h"
accel/tcg/tcg-accel-ops-rr.c
+1
@@ -32,6 +32,7 @@
32 #include "qemu/notify.h"
33 #include "qemu/guest-random.h"
34 #include "exec/cpu-common.h"
35 +#include "accel/tcg/cpu-loop.h"
36 #include "tcg/startup.h"
37 #include "tcg-accel-ops.h"
38 #include "tcg-accel-ops-rr.h"
include/accel/tcg/cpu-loop.h
+2
@@ -18,4 +18,6 @@
18 */
19 int cpu_exec(CPUState *cpu);
20
21 +void cpu_exec_step_atomic(CPUState *cpu);
22 +
23 #endif
include/exec/cpu-common.h
-2
@@ -18,8 +18,6 @@
18 #define EXCP_YIELD 0x10004 /* cpu wants to yield timeslice to another */
19 #define EXCP_ATOMIC 0x10005 /* stop-the-world and emulate atomic */
20
21 -void cpu_exec_step_atomic(CPUState *cpu);
22 -
21 #define REAL_HOST_PAGE_ALIGN(addr) ROUND_UP((addr), qemu_real_host_page_size())
22
23 /* The CPU list lock nests outside page_(un)lock or mmap_(un)lock */