target: Do not include "exec/exec-all.h" if it is not necessary

Code change produced with:
    $ git grep '#include "exec/exec-all.h"' | \
      cut -d: -f-1 | \
      xargs egrep -L "(cpu_address_space_init|cpu_loop_|tlb_|tb_|GETPC|singlestep|TranslationBlock)" | \
      xargs sed -i.bak '/#include "exec\/exec-all.h"/d'

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180528232719.4721-10-f4bug@amsat.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2018-05-28 20:27:07 -03:00 committed by Paolo Bonzini
parent 05757c5d87
commit 23c11b04dc
36 changed files with 0 additions and 36 deletions

View File

@ -19,7 +19,6 @@
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/cpu_ldst.h" #include "exec/cpu_ldst.h"
#undef DEBUG_REMAP #undef DEBUG_REMAP

View File

@ -11,7 +11,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "sysemu/cpus.h" #include "sysemu/cpus.h"
#include "sysemu/hw_accel.h" #include "sysemu/hw_accel.h"

View File

@ -15,7 +15,6 @@
#include "arm-powerctl.h" #include "arm-powerctl.h"
#include "qemu/log.h" #include "qemu/log.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "exec/exec-all.h"
#ifndef DEBUG_ARM_POWERCTL #ifndef DEBUG_ARM_POWERCTL
#define DEBUG_ARM_POWERCTL 0 #define DEBUG_ARM_POWERCTL 0

View File

@ -20,7 +20,6 @@
#ifndef ARM_LDST_H #ifndef ARM_LDST_H
#define ARM_LDST_H #define ARM_LDST_H
#include "exec/exec-all.h"
#include "exec/cpu_ldst.h" #include "exec/cpu_ldst.h"
#include "qemu/bswap.h" #include "qemu/bswap.h"

View File

@ -12,7 +12,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
#include "crypto/aes.h" #include "crypto/aes.h"

View File

@ -22,7 +22,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
/* iwMMXt macros extracted from GNU gdb. */ /* iwMMXt macros extracted from GNU gdb. */

View File

@ -9,7 +9,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
#include "fpu/softfloat.h" #include "fpu/softfloat.h"

View File

@ -22,7 +22,6 @@
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "internals.h" #include "internals.h"
#include "arm-powerctl.h" #include "arm-powerctl.h"
#include "exec/exec-all.h"
bool arm_is_psci_call(ARMCPU *cpu, int excp_type) bool arm_is_psci_call(ARMCPU *cpu, int excp_type)
{ {

View File

@ -19,7 +19,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
#include "tcg/tcg-gvec-desc.h" #include "tcg/tcg-gvec-desc.h"
#include "fpu/softfloat.h" #include "fpu/softfloat.h"

View File

@ -26,7 +26,6 @@
#include "cpu.h" #include "cpu.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "mmu.h" #include "mmu.h"
#include "exec/exec-all.h"
static void cris_cpu_set_pc(CPUState *cs, vaddr value) static void cris_cpu_set_pc(CPUState *cs, vaddr value)

View File

@ -20,7 +20,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "fpu/softfloat.h" #include "fpu/softfloat.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"

View File

@ -21,7 +21,6 @@
#include "qemu/main-loop.h" #include "qemu/main-loop.h"
#include "qemu/log.h" #include "qemu/log.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
#include "qom/cpu.h" #include "qom/cpu.h"

View File

@ -26,7 +26,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "exec/exec-all.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hax-i386.h" #include "hax-i386.h"

View File

@ -11,7 +11,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "exec/exec-all.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "target/i386/hax-i386.h" #include "target/i386/hax-i386.h"

View File

@ -12,7 +12,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "hax-i386.h" #include "hax-i386.h"
/* /*

View File

@ -65,7 +65,6 @@
#include <Hypervisor/hv_vmx.h> #include <Hypervisor/hv_vmx.h>
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "exec/exec-all.h"
#include "hw/i386/apic_internal.h" #include "hw/i386/apic_internal.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"

View File

@ -26,7 +26,6 @@
#include <Hypervisor/hv.h> #include <Hypervisor/hv.h>
#include <Hypervisor/hv_vmx.h> #include <Hypervisor/hv_vmx.h>
#include "exec/exec-all.h"
#include "hw/i386/apic_internal.h" #include "hw/i386/apic_internal.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"

View File

@ -11,7 +11,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "exec/exec-all.h"
#include "exec/ioport.h" #include "exec/ioport.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "strings.h" #include "strings.h"

View File

@ -22,7 +22,6 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "cpu.h" #include "cpu.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "exec/exec-all.h"
static void lm32_cpu_set_pc(CPUState *cs, vaddr value) static void lm32_cpu_set_pc(CPUState *cs, vaddr value)

View File

@ -23,7 +23,6 @@
#include "cpu.h" #include "cpu.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "migration/vmstate.h" #include "migration/vmstate.h"
#include "exec/exec-all.h"
#include "fpu/softfloat.h" #include "fpu/softfloat.h"
static void m68k_cpu_set_pc(CPUState *cs, vaddr value) static void m68k_cpu_set_pc(CPUState *cs, vaddr value)

View File

@ -23,7 +23,6 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "migration/vmstate.h" #include "migration/vmstate.h"
#include "machine.h" #include "machine.h"
#include "exec/exec-all.h"
static void moxie_cpu_set_pc(CPUState *cs, vaddr value) static void moxie_cpu_set_pc(CPUState *cs, vaddr value)
{ {

View File

@ -21,7 +21,6 @@
#include "cpu.h" #include "cpu.h"
#include "mmu.h" #include "mmu.h"
#include "exec/exec-all.h"
int moxie_mmu_translate(MoxieMMUResult *res, int moxie_mmu_translate(MoxieMMUResult *res,
CPUMoxieState *env, uint32_t vaddr, CPUMoxieState *env, uint32_t vaddr,

View File

@ -21,7 +21,6 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "cpu.h" #include "cpu.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "exec/exec-all.h"
static void openrisc_cpu_set_pc(CPUState *cs, vaddr value) static void openrisc_cpu_set_pc(CPUState *cs, vaddr value)
{ {

View File

@ -19,7 +19,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "internal.h" #include "internal.h"
#include "exec/exec-all.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"
#include "exec/helper-proto.h" #include "exec/helper-proto.h"
#include "crypto/aes.h" #include "crypto/aes.h"

View File

@ -38,7 +38,6 @@
#include "qapi/qapi-visit-misc.h" #include "qapi/qapi-visit-misc.h"
#include "qapi/qapi-visit-run-state.h" #include "qapi/qapi-visit-run-state.h"
#include "sysemu/hw_accel.h" #include "sysemu/hw_accel.h"
#include "exec/exec-all.h"
#include "hw/qdev-properties.h" #include "hw/qdev-properties.h"
#ifndef CONFIG_USER_ONLY #ifndef CONFIG_USER_ONLY
#include "hw/hw.h" #include "hw/hw.h"

View File

@ -16,7 +16,6 @@
#include "cpu.h" #include "cpu.h"
#include "internal.h" #include "internal.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "exec/exec-all.h"
#include "hw/watchdog/wdt_diag288.h" #include "hw/watchdog/wdt_diag288.h"
#include "sysemu/cpus.h" #include "sysemu/cpus.h"
#include "hw/s390x/ipl.h" #include "hw/s390x/ipl.h"

View File

@ -23,7 +23,6 @@
#include "internal.h" #include "internal.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "exec/exec-all.h"
#include "hw/s390x/ioinst.h" #include "hw/s390x/ioinst.h"
#include "sysemu/hw_accel.h" #include "sysemu/hw_accel.h"
#ifndef CONFIG_USER_ONLY #ifndef CONFIG_USER_ONLY

View File

@ -24,7 +24,6 @@
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/qdev-properties.h" #include "hw/qdev-properties.h"
#include "linux-user/syscall_defs.h" #include "linux-user/syscall_defs.h"
#include "exec/exec-all.h"
static void tilegx_cpu_dump_state(CPUState *cs, FILE *f, static void tilegx_cpu_dump_state(CPUState *cs, FILE *f,
fprintf_function cpu_fprintf, int flags) fprintf_function cpu_fprintf, int flags)

View File

@ -27,7 +27,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"
#include "qemu/timer.h" #include "qemu/timer.h"

View File

@ -27,7 +27,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"

View File

@ -27,7 +27,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"

View File

@ -27,7 +27,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"

View File

@ -27,7 +27,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"

View File

@ -33,7 +33,6 @@
#include "cpu.h" #include "cpu.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "migration/vmstate.h" #include "migration/vmstate.h"
#include "exec/exec-all.h"
static void xtensa_cpu_set_pc(CPUState *cs, vaddr value) static void xtensa_cpu_set_pc(CPUState *cs, vaddr value)

View File

@ -39,7 +39,6 @@ tar -xf "$OVERLAY" -O binutils/xtensa-modules.c | \
cat <<EOF > "${TARGET}.c" cat <<EOF > "${TARGET}.c"
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/host-utils.h" #include "qemu/host-utils.h"

View File

@ -20,7 +20,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "cpu.h" #include "cpu.h"
#include "exec/exec-all.h"
#include "tcg.h" #include "tcg.h"
#include "tcg-op.h" #include "tcg-op.h"
#include "tcg-mo.h" #include "tcg-mo.h"