From 345179a72f3272bf761218f282bd9c1edff033d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 19 Feb 2026 17:17:57 +0000 Subject: [PATCH] target/m68k: clean-up includes in cpu.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Thomas Huth Reviewed-by: Pierrick Bouvier Message-ID: <20260219171810.602667-2-alex.bennee@linaro.org> Signed-off-by: Philippe Mathieu-Daudé --- target/m68k/cpu.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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) {