diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-08-12 07:23:56 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-08-16 13:31:53 +0200 |
commit | d5938f29fea29581725426f203a74da746ca03e7 (patch) | |
tree | 0caa694b1084f73004a8eacced417b1ef3073fcc /target | |
parent | b58c5c2dd29db0eae0bed800ac1a311e14007cec (diff) |
Clean up inclusion of sysemu/sysemu.h
In my "build everything" tree, changing sysemu/sysemu.h triggers a
recompile of some 5400 out of 6600 objects (not counting tests and
objects that don't depend on qemu/osdep.h).
Almost a third of its inclusions are actually superfluous. Delete
them. Downgrade two more to qapi/qapi-types-run-state.h, and move one
from char/serial.h to char/serial.c.
hw/semihosting/config.c, monitor/monitor.c, qdev-monitor.c, and
stubs/semihost.c define variables declared in sysemu/sysemu.h without
including it. The compiler is cool with that, but include it anyway.
This doesn't reduce actual use much, as it's still included into
widely included headers. The next commit will tackle that.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190812052359.30071-27-armbru@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/cpu64.c | 1 | ||||
-rw-r--r-- | target/arm/helper-a64.c | 1 | ||||
-rw-r--r-- | target/arm/helper.c | 1 | ||||
-rw-r--r-- | target/arm/kvm32.c | 1 | ||||
-rw-r--r-- | target/arm/kvm64.c | 1 | ||||
-rw-r--r-- | target/arm/m_helper.c | 1 | ||||
-rw-r--r-- | target/i386/hvf/x86_task.c | 1 | ||||
-rw-r--r-- | target/lm32/helper.c | 1 | ||||
-rw-r--r-- | target/m68k/m68k-semi.c | 1 | ||||
-rw-r--r-- | target/nios2/nios2-semi.c | 1 | ||||
-rw-r--r-- | target/ppc/kvm.c | 1 | ||||
-rw-r--r-- | target/sparc/helper.c | 1 | ||||
-rw-r--r-- | target/xtensa/translate.c | 1 | ||||
-rw-r--r-- | target/xtensa/xtensa-semi.c | 1 |
14 files changed, 0 insertions, 14 deletions
diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 1901997a06..e4edff548e 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -25,7 +25,6 @@ #if !defined(CONFIG_USER_ONLY) #include "hw/loader.h" #endif -#include "sysemu/sysemu.h" #include "sysemu/kvm.h" #include "kvm_arm.h" #include "qapi/visitor.h" diff --git a/target/arm/helper-a64.c b/target/arm/helper-a64.c index 616d62c7fc..bca80bdc38 100644 --- a/target/arm/helper-a64.c +++ b/target/arm/helper-a64.c @@ -24,7 +24,6 @@ #include "qemu/host-utils.h" #include "qemu/log.h" #include "qemu/main-loop.h" -#include "sysemu/sysemu.h" #include "qemu/bitops.h" #include "internals.h" #include "qemu/crc32c.h" diff --git a/target/arm/helper.c b/target/arm/helper.c index 210f5831e3..edee110ae1 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -16,7 +16,6 @@ #include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "qemu/main-loop.h" -#include "sysemu/sysemu.h" #include "qemu/bitops.h" #include "qemu/crc32c.h" #include "qemu/qemu-print.h" diff --git a/target/arm/kvm32.c b/target/arm/kvm32.c index 51f78f722b..2451a2d4bb 100644 --- a/target/arm/kvm32.c +++ b/target/arm/kvm32.c @@ -16,7 +16,6 @@ #include "qemu-common.h" #include "cpu.h" #include "qemu/timer.h" -#include "sysemu/sysemu.h" #include "sysemu/kvm.h" #include "kvm_arm.h" #include "internals.h" diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index c76d3d799a..59ed579d02 100644 --- a/target/arm/kvm64.c +++ b/target/arm/kvm64.c @@ -23,7 +23,6 @@ #include "qemu/host-utils.h" #include "qemu/main-loop.h" #include "exec/gdbstub.h" -#include "sysemu/sysemu.h" #include "sysemu/kvm.h" #include "kvm_arm.h" #include "internals.h" diff --git a/target/arm/m_helper.c b/target/arm/m_helper.c index cde5195d28..884d35d2b0 100644 --- a/target/arm/m_helper.c +++ b/target/arm/m_helper.c @@ -16,7 +16,6 @@ #include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "qemu/main-loop.h" -#include "sysemu/sysemu.h" #include "qemu/bitops.h" #include "qemu/crc32c.h" #include "qemu/qemu-print.h" diff --git a/target/i386/hvf/x86_task.c b/target/i386/hvf/x86_task.c index 73cd5d2817..1daac6cc2b 100644 --- a/target/i386/hvf/x86_task.c +++ b/target/i386/hvf/x86_task.c @@ -29,7 +29,6 @@ #include "hw/i386/apic_internal.h" #include "qemu/main-loop.h" #include "sysemu/accel.h" -#include "sysemu/sysemu.h" #include "target/i386/cpu.h" // TODO: taskswitch handling diff --git a/target/lm32/helper.c b/target/lm32/helper.c index 9f3b107474..1130fc8884 100644 --- a/target/lm32/helper.c +++ b/target/lm32/helper.c @@ -21,7 +21,6 @@ #include "cpu.h" #include "exec/exec-all.h" #include "qemu/host-utils.h" -#include "sysemu/sysemu.h" #include "hw/semihosting/semihost.h" #include "exec/log.h" diff --git a/target/m68k/m68k-semi.c b/target/m68k/m68k-semi.c index 01627b42c9..8e5fbfc8fa 100644 --- a/target/m68k/m68k-semi.c +++ b/target/m68k/m68k-semi.c @@ -28,7 +28,6 @@ #include "exec/softmmu-semi.h" #endif #include "qemu/log.h" -#include "sysemu/sysemu.h" #define HOSTED_EXIT 0 #define HOSTED_INIT_SIM 1 diff --git a/target/nios2/nios2-semi.c b/target/nios2/nios2-semi.c index cc2777d2f8..d7a80dd303 100644 --- a/target/nios2/nios2-semi.c +++ b/target/nios2/nios2-semi.c @@ -32,7 +32,6 @@ #include "exec/softmmu-semi.h" #endif #include "qemu/log.h" -#include "sysemu/sysemu.h" #define HOSTED_EXIT 0 #define HOSTED_INIT_SIM 1 diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c index 6836a4afb3..6162a903fa 100644 --- a/target/ppc/kvm.c +++ b/target/ppc/kvm.c @@ -27,7 +27,6 @@ #include "cpu.h" #include "cpu-models.h" #include "qemu/timer.h" -#include "sysemu/sysemu.h" #include "sysemu/hw_accel.h" #include "kvm_ppc.h" #include "sysemu/cpus.h" diff --git a/target/sparc/helper.c b/target/sparc/helper.c index 1a52061fbf..07d87efa4e 100644 --- a/target/sparc/helper.c +++ b/target/sparc/helper.c @@ -22,7 +22,6 @@ #include "exec/exec-all.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h" -#include "sysemu/sysemu.h" void cpu_raise_exception_ra(CPUSPARCState *env, int tt, uintptr_t ra) { diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 6f1da87875..fa12a576b2 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -36,7 +36,6 @@ #include "tcg-op.h" #include "qemu/log.h" #include "qemu/qemu-print.h" -#include "sysemu/sysemu.h" #include "exec/cpu_ldst.h" #include "hw/semihosting/semihost.h" #include "exec/translator.h" diff --git a/target/xtensa/xtensa-semi.c b/target/xtensa/xtensa-semi.c index 8862985e56..25f57a6500 100644 --- a/target/xtensa/xtensa-semi.c +++ b/target/xtensa/xtensa-semi.c @@ -32,7 +32,6 @@ #include "hw/semihosting/semihost.h" #include "qapi/error.h" #include "qemu/log.h" -#include "sysemu/sysemu.h" enum { TARGET_SYS_exit = 1, |