[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v4 29/33] target/arm: cleanup cpu includes
From: |
Claudio Fontana |
Subject: |
[RFC v4 29/33] target/arm: cleanup cpu includes |
Date: |
Fri, 5 Mar 2021 15:59:37 +0100 |
From: Claudio Fontana <cfontana@centriq4.arch.suse.de>
cpu.c,
cpu32.c,
cpu64.c,
tcg/sysemu/tcg-cpu.c,
all need a good cleanup when it comes to included header files.
Signed-off-by: Claudio Fontana <cfontana@centriq4.arch.suse.de>
---
target/arm/cpu.c | 8 ++------
target/arm/cpu32.c | 14 --------------
target/arm/cpu64.c | 6 ------
target/arm/tcg/sysemu/tcg-cpu.c | 22 +---------------------
4 files changed, 3 insertions(+), 47 deletions(-)
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index eac5cd132c..be86bd4b8b 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -19,28 +19,24 @@
*/
#include "qemu/osdep.h"
-#include "qemu/qemu-print.h"
#include "qemu-common.h"
#include "target/arm/idau.h"
-#include "qemu/module.h"
#include "qapi/error.h"
-#include "qapi/visitor.h"
#include "cpu.h"
#include "cpregs.h"
+
#ifdef CONFIG_TCG
#include "tcg/tcg-cpu.h"
#endif /* CONFIG_TCG */
#include "cpu32.h"
-#include "internals.h"
#include "exec/exec-all.h"
#include "hw/qdev-properties.h"
#if !defined(CONFIG_USER_ONLY)
#include "hw/loader.h"
#include "hw/boards.h"
#endif
-#include "sysemu/sysemu.h"
+
#include "sysemu/tcg.h"
-#include "sysemu/hw_accel.h"
#include "kvm/kvm_arm.h"
#include "disas/capstone.h"
#include "fpu/softfloat.h"
diff --git a/target/arm/cpu32.c b/target/arm/cpu32.c
index 182f66db0a..f36ba88525 100644
--- a/target/arm/cpu32.c
+++ b/target/arm/cpu32.c
@@ -20,26 +20,12 @@
#include "qemu/osdep.h"
#include "qemu/qemu-print.h"
-#include "qemu-common.h"
-#include "target/arm/idau.h"
#include "qemu/module.h"
-#include "qapi/error.h"
-#include "qapi/visitor.h"
#include "cpu.h"
#include "cpregs.h"
-#include "internals.h"
-#include "exec/exec-all.h"
-#include "hw/qdev-properties.h"
#if !defined(CONFIG_USER_ONLY)
-#include "hw/loader.h"
#include "hw/boards.h"
#endif
-#include "sysemu/sysemu.h"
-#include "sysemu/tcg.h"
-#include "sysemu/hw_accel.h"
-#include "kvm/kvm_arm.h"
-#include "disas/capstone.h"
-#include "fpu/softfloat.h"
#include "cpu-mmu.h"
#include "cpu32.h"
diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c
index 3478282c20..7c27b0febb 100644
--- a/target/arm/cpu64.c
+++ b/target/arm/cpu64.c
@@ -22,13 +22,7 @@
#include "qapi/error.h"
#include "qemu/qemu-print.h"
#include "cpu.h"
-#ifdef CONFIG_TCG
-#include "hw/core/tcg-cpu-ops.h"
-#endif /* CONFIG_TCG */
#include "qemu/module.h"
-#if !defined(CONFIG_USER_ONLY)
-#include "hw/loader.h"
-#endif
#include "sysemu/kvm.h"
#include "kvm/kvm_arm.h"
#include "qapi/visitor.h"
diff --git a/target/arm/tcg/sysemu/tcg-cpu.c b/target/arm/tcg/sysemu/tcg-cpu.c
index ed030678f3..664a7ee206 100644
--- a/target/arm/tcg/sysemu/tcg-cpu.c
+++ b/target/arm/tcg/sysemu/tcg-cpu.c
@@ -19,29 +19,9 @@
*/
#include "qemu/osdep.h"
-#include "qemu/qemu-print.h"
-#include "qemu-common.h"
-#include "target/arm/idau.h"
-#include "qemu/module.h"
-#include "qapi/error.h"
-#include "qapi/visitor.h"
#include "cpu.h"
-#include "hw/core/tcg-cpu-ops.h"
#include "hw/semihosting/common-semi.h"
-#include "cpregs.h"
-#include "internals.h"
-#include "exec/exec-all.h"
-#include "hw/qdev-properties.h"
-#if !defined(CONFIG_USER_ONLY)
-#include "hw/loader.h"
-#include "hw/boards.h"
-#endif
-#include "sysemu/sysemu.h"
-#include "sysemu/tcg.h"
-#include "sysemu/hw_accel.h"
-#include "disas/capstone.h"
-#include "fpu/softfloat.h"
-#include "cpu-mmu.h"
+#include "qemu/log.h"
#include "tcg/tcg-cpu.h"
/*
--
2.26.2
- [RFC v4 03/33] arm: tcg: only build under CONFIG_TCG, (continued)
- [RFC v4 03/33] arm: tcg: only build under CONFIG_TCG, Claudio Fontana, 2021/03/05
- [RFC v4 08/33] target/arm: cpu-mmu: fix comment style, Claudio Fontana, 2021/03/05
- [RFC v4 07/33] target/arm: move physical address translation to cpu-mmu, Claudio Fontana, 2021/03/05
- [RFC v4 09/33] target/arm: split cpregs from tcg/helper.c, Claudio Fontana, 2021/03/05
- [RFC v4 15/33] target/arm: add temporary stub for arm_rebuild_hflags, Claudio Fontana, 2021/03/05
- [RFC v4 13/33] target/arm: kvm: add stubs for some helpers, Claudio Fontana, 2021/03/05
- [RFC v4 18/33] target/arm: move sve_zcr_len_for_el to common_cpu, Claudio Fontana, 2021/03/05
- [RFC v4 12/33] target/arm: only perform TCG cpu and machine inits if TCG enabled, Claudio Fontana, 2021/03/05
- [RFC v4 16/33] target/arm: split vfp state setting from tcg helpers, Claudio Fontana, 2021/03/05
- [RFC v4 28/33] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/, Claudio Fontana, 2021/03/05
- [RFC v4 29/33] target/arm: cleanup cpu includes,
Claudio Fontana <=
- [RFC v4 25/33] target/arm: cpu: fix style, Claudio Fontana, 2021/03/05
- [RFC v4 14/33] target/arm: move cpsr_read, cpsr_write to cpu_common, Claudio Fontana, 2021/03/05
- [RFC v4 17/33] target/arm: move arm_mmu_idx* to cpu-mmu, Claudio Fontana, 2021/03/05
- [RFC v4 20/33] target/arm: move arm_cpu_list to common_cpu, Claudio Fontana, 2021/03/05
- [RFC v4 26/33] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled(), Claudio Fontana, 2021/03/05
- [RFC v4 22/33] target/arm: split 32bit cpu models from cpu.c to cpu32.c, Claudio Fontana, 2021/03/05
- [RFC v4 21/33] target/arm: move aarch64_sync_32_to_64 (and vv) to cpu code, Claudio Fontana, 2021/03/05
- [RFC v4 23/33] target/arm: move sve_exception_el out of TCG helpers, Claudio Fontana, 2021/03/05
- [RFC v4 27/33] target/arm: remove kvm include file for PSCI and arm-powerctl, Claudio Fontana, 2021/03/05
- [RFC v4 30/33] target/arm: remove broad "else" statements when checking accels, Claudio Fontana, 2021/03/05