[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v16 60/99] target/arm: cleanup cpu includes
From: |
Alex Bennée |
Subject: |
[PATCH v16 60/99] target/arm: cleanup cpu includes |
Date: |
Fri, 4 Jun 2021 16:52:33 +0100 |
From: Claudio Fontana <cfontana@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@suse.de>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
target/arm/cpu.c | 6 ++----
target/arm/cpu32.c | 14 --------------
target/arm/cpu64.c | 6 ------
target/arm/tcg/sysemu/tcg-cpu.c | 22 +---------------------
4 files changed, 3 insertions(+), 45 deletions(-)
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index 9b81cbe386..7e3726ff00 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -21,24 +21,22 @@
#include "qemu/osdep.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/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 56f02ca891..6c53245d66 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 f5ead76374..a8ff1994ca 100644
--- a/target/arm/cpu64.c
+++ b/target/arm/cpu64.c
@@ -23,13 +23,7 @@
#include "qemu/qemu-print.h"
#include "cpu.h"
#include "cpu32.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.20.1
- [PATCH v16 58/99] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/, (continued)
- [PATCH v16 85/99] target/arm: cpu-pauth: new module for ARMv8.3 Pointer Authentication, Alex Bennée, 2021/06/04
- [PATCH v16 84/99] target/arm: cpu-common: wrap a64-only check with is_a64, Alex Bennée, 2021/06/04
- [PATCH v16 60/99] target/arm: cleanup cpu includes,
Alex Bennée <=
- [PATCH v16 71/99] target/arm: cpu-sve: new module, Alex Bennée, 2021/06/04
- [PATCH v16 69/99] target/arm: add tcg cpu accel class, Alex Bennée, 2021/06/04
- [PATCH v16 25/99] target/arm: tcg: fix comment style before move to cpu-mmu, Alex Bennée, 2021/06/04
- [PATCH v16 24/99] target/arm: split off cpu-sysemu.c, Alex Bennée, 2021/06/04
- [PATCH v16 59/99] MAINTAINERS: update arm kvm maintained files to all in target/arm/kvm/, Alex Bennée, 2021/06/04
- [PATCH v16 76/99] target/arm: restrict rebuild_hflags_a64 to TARGET_AARCH64, Alex Bennée, 2021/06/04