[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v10 29/49] target/arm: cleanup cpu includes
From: |
Claudio Fontana |
Subject: |
[RFC v10 29/49] target/arm: cleanup cpu includes |
Date: |
Mon, 22 Mar 2021 15:01:46 +0100 |
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@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 97cb6ec8a8..3491e615c3 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 655f0a4263..52b5411af6 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 d7e9a812cd..b3475a93cc 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 6ab49ba614..327b2a5073 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 "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 v10 27/49] target/arm: remove kvm include file for PSCI and arm-powerctl, (continued)
- [RFC v10 27/49] target/arm: remove kvm include file for PSCI and arm-powerctl, Claudio Fontana, 2021/03/22
- [RFC v10 28/49] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/, Claudio Fontana, 2021/03/22
- [RFC v10 33/49] tests: do not run test-hmp on all machines for ARM KVM-only, Claudio Fontana, 2021/03/22
- [RFC v10 22/49] target/arm: split a15 cpu model and 32bit class functions to cpu32.c, Claudio Fontana, 2021/03/22
- [RFC v10 30/49] target/arm: remove broad "else" statements when checking accels, Claudio Fontana, 2021/03/22
- [RFC v10 31/49] tests/qtest: skip bios-tables-test test_acpi_oem_fields_virt for KVM, Claudio Fontana, 2021/03/22
- [RFC v10 32/49] tests: restrict TCG-only arm-cpu-features tests to TCG builds, Claudio Fontana, 2021/03/22
- [RFC v10 34/49] tests: device-introspect-test: cope with ARM TCG-only devices, Claudio Fontana, 2021/03/22
- [RFC v10 36/49] Revert "target/arm: Restrict v8M IDAU to TCG", Claudio Fontana, 2021/03/22
- [RFC v10 38/49] target/arm: move kvm post init initialization to kvm cpu accel, Claudio Fontana, 2021/03/22
- [RFC v10 29/49] target/arm: cleanup cpu includes,
Claudio Fontana <=
- [RFC v10 40/49] target/arm: move TCG gt timer creation code in tcg/, Claudio Fontana, 2021/03/22
- [RFC v10 39/49] target/arm: add tcg cpu accel class, Claudio Fontana, 2021/03/22
- [RFC v10 37/49] target/arm: create kvm cpu accel class, Claudio Fontana, 2021/03/22
- [RFC v10 35/49] tests: do not run qom-test on all machines for ARM KVM-only, Claudio Fontana, 2021/03/22
- [RFC v10 44/49] target/arm: arch_dump: restrict ELFCLASS64 to AArch64, Claudio Fontana, 2021/03/22
- [RFC v10 43/49] target/arm: make is_aa64 and arm_el_is_aa64 a macro for !TARGET_AARCH64, Claudio Fontana, 2021/03/22
- [RFC v10 46/49] target/arm: tcg: restrict ZCR cpregs to TARGET_AARCH64, Claudio Fontana, 2021/03/22
- [RFC v10 47/49] target/arm: cpu-pauth: new module for ARMv8.3 Pointer Authentication, Claudio Fontana, 2021/03/22