]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/tcg: Build tcg-all.c twice
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 30 Apr 2025 22:25:29 +0000 (15:25 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 1 May 2025 14:38:51 +0000 (07:38 -0700)
Remove some unused headers.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/meson.build
accel/tcg/tcg-all.c

index 7eb4619aea97db5c65b6535844154d41cd2f8e60..d6bd304add44dc8467bb9793284a096b443d2e78 100644 (file)
@@ -10,6 +10,7 @@ tcg_ss.add(files(
   'tcg-runtime.c',
   'tcg-runtime-gvec.c',
   'tb-maint.c',
+  'tcg-all.c',
   'translate-all.c',
   'translator.c',
 ))
@@ -21,9 +22,6 @@ libuser_ss.add_all(tcg_ss)
 libsystem_ss.add_all(tcg_ss)
 
 tcg_specific_ss = ss.source_set()
-tcg_specific_ss.add(files(
-  'tcg-all.c',
-))
 tcg_specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
 specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_specific_ss)
 
index 0ce34ac912c81ddd9a0bf8af26ba0d8258af0a84..6e5dc333d59ebac34e9af946ca7e5cc37c0be898 100644 (file)
 #include "qapi/qapi-builtin-visit.h"
 #include "qemu/units.h"
 #include "qemu/target-info.h"
-#if defined(CONFIG_USER_ONLY)
-#include "hw/qdev-core.h"
-#else
+#ifndef CONFIG_USER_ONLY
 #include "hw/boards.h"
-#include "system/tcg.h"
 #endif
 #include "accel/tcg/cpu-ops.h"
 #include "internal-common.h"
-#include "cpu-param.h"
 
 
 struct TCGState {