diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2025-04-30 15:25:29 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-05-01 07:38:51 -0700 |
commit | 97f0d52435ec9da8fd58dc73b6765181fcb25965 (patch) | |
tree | 9a371c430a64334cb44dd14c23e2a130a29da1c2 | |
parent | b5dee28732209eaf93656807810c9c5340e907e1 (diff) | |
download | qemu-97f0d52435ec9da8fd58dc73b6765181fcb25965.zip qemu-97f0d52435ec9da8fd58dc73b6765181fcb25965.tar.gz qemu-97f0d52435ec9da8fd58dc73b6765181fcb25965.tar.bz2 |
accel/tcg: Build tcg-all.c twice
Remove some unused headers.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | accel/tcg/meson.build | 4 | ||||
-rw-r--r-- | accel/tcg/tcg-all.c | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/accel/tcg/meson.build b/accel/tcg/meson.build index 7eb4619..d6bd304 100644 --- a/accel/tcg/meson.build +++ b/accel/tcg/meson.build @@ -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) diff --git a/accel/tcg/tcg-all.c b/accel/tcg/tcg-all.c index 0ce34ac..6e5dc33 100644 --- a/accel/tcg/tcg-all.c +++ b/accel/tcg/tcg-all.c @@ -36,15 +36,11 @@ #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 { |