Commit 345179a72f for qemu.org
commit 345179a72f3272bf761218f282bd9c1edff033d5
Author: Alex Bennée <alex.bennee@linaro.org>
Date: Thu Feb 19 17:17:57 2026 +0000
target/m68k: clean-up includes in cpu.c
We don't need translation-block.h as the TB flags are local and the
only bits needed come from cpu-ops.h. The vmstate is a system only
concerns so we can guard against including it for linux-user.
Finally tidy up the order to keep things together with the local cpu.h
kept at the end.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20260219171810.602667-2-alex.bennee@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c
index c721a23b96..d849a4a90f 100644
--- a/target/m68k/cpu.c
+++ b/target/m68k/cpu.c
@@ -19,12 +19,15 @@
*/
#include "qemu/osdep.h"
+#include "accel/tcg/cpu-ops.h"
+#include "fpu/softfloat.h"
#include "qapi/error.h"
-#include "cpu.h"
+
+#ifndef CONFIG_USER_ONLY
#include "migration/vmstate.h"
-#include "fpu/softfloat.h"
-#include "exec/translation-block.h"
-#include "accel/tcg/cpu-ops.h"
+#endif
+
+#include "cpu.h"
static void m68k_cpu_set_pc(CPUState *cs, vaddr value)
{