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>
Alex Bennée committed
Feb 19, 2026 at 17:17 UTC
345179a72f3272bf761218f282bd9c1edff033d5
1 file changed
+7
-4
target/m68k/cpu.c
+7
-4
@@ -19,12 +19,15 @@
19
*/
20
21
#include "qemu/osdep.h"
22
+#include "accel/tcg/cpu-ops.h"
23
+#include "fpu/softfloat.h"
24
#include "qapi/error.h"
23
-#include "cpu.h"
25
+
26
+#ifndef CONFIG_USER_ONLY
27
#include "migration/vmstate.h"
25
-#include "fpu/softfloat.h"
26
-#include "exec/translation-block.h"
27
-#include "accel/tcg/cpu-ops.h"
28
+#endif
29
+
30
+#include "cpu.h"
31
32
static void m68k_cpu_set_pc(CPUState *cs, vaddr value)
33
{