Sfoglia il codice sorgente

arch_init.h: Don't include arch_init.h unnecessarily

arch_init.h only defines the QEMU_ARCH_* enumeration and the
arch_type global. Don't include it in files that don't use those.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210730105947.28215-8-peter.maydell@linaro.org
Peter Maydell 4 anni fa
parent
commit
7f4c520dac

+ 0 - 1
blockdev.c

@@ -56,7 +56,6 @@
 #include "sysemu/iothread.h"
 #include "sysemu/iothread.h"
 #include "block/block_int.h"
 #include "block/block_int.h"
 #include "block/trace.h"
 #include "block/trace.h"
-#include "sysemu/arch_init.h"
 #include "sysemu/runstate.h"
 #include "sysemu/runstate.h"
 #include "sysemu/replay.h"
 #include "sysemu/replay.h"
 #include "qemu/cutils.h"
 #include "qemu/cutils.h"

+ 0 - 1
hw/i386/pc.c

@@ -65,7 +65,6 @@
 #include "hw/xen/start_info.h"
 #include "hw/xen/start_info.h"
 #include "ui/qemu-spice.h"
 #include "ui/qemu-spice.h"
 #include "exec/memory.h"
 #include "exec/memory.h"
-#include "sysemu/arch_init.h"
 #include "qemu/bitmap.h"
 #include "qemu/bitmap.h"
 #include "qemu/config-file.h"
 #include "qemu/config-file.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"

+ 0 - 1
hw/i386/pc_piix.c

@@ -43,7 +43,6 @@
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"
 #include "hw/kvm/clock.h"
 #include "hw/kvm/clock.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
-#include "sysemu/arch_init.h"
 #include "hw/i2c/smbus_eeprom.h"
 #include "hw/i2c/smbus_eeprom.h"
 #include "hw/xen/xen-x86.h"
 #include "hw/xen/xen-x86.h"
 #include "exec/memory.h"
 #include "exec/memory.h"

+ 0 - 1
hw/i386/pc_q35.c

@@ -31,7 +31,6 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/units.h"
 #include "hw/loader.h"
 #include "hw/loader.h"
-#include "sysemu/arch_init.h"
 #include "hw/i2c/smbus_eeprom.h"
 #include "hw/i2c/smbus_eeprom.h"
 #include "hw/rtc/mc146818rtc.h"
 #include "hw/rtc/mc146818rtc.h"
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"

+ 0 - 1
hw/mips/jazz.c

@@ -35,7 +35,6 @@
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"
 #include "hw/block/fdc.h"
 #include "hw/block/fdc.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
-#include "sysemu/arch_init.h"
 #include "hw/boards.h"
 #include "hw/boards.h"
 #include "net/net.h"
 #include "net/net.h"
 #include "hw/scsi/esp.h"
 #include "hw/scsi/esp.h"

+ 0 - 1
hw/mips/malta.c

@@ -38,7 +38,6 @@
 #include "hw/mips/mips.h"
 #include "hw/mips/mips.h"
 #include "hw/mips/cpudevs.h"
 #include "hw/mips/cpudevs.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"
-#include "sysemu/arch_init.h"
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "hw/mips/bios.h"
 #include "hw/mips/bios.h"
 #include "hw/ide.h"
 #include "hw/ide.h"

+ 0 - 1
hw/ppc/prep.c

@@ -40,7 +40,6 @@
 #include "hw/rtc/mc146818rtc.h"
 #include "hw/rtc/mc146818rtc.h"
 #include "hw/isa/pc87312.h"
 #include "hw/isa/pc87312.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
-#include "sysemu/arch_init.h"
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"
 #include "sysemu/reset.h"
 #include "sysemu/reset.h"
 #include "trace.h"
 #include "trace.h"

+ 0 - 1
hw/riscv/sifive_e.c

@@ -45,7 +45,6 @@
 #include "hw/intc/sifive_plic.h"
 #include "hw/intc/sifive_plic.h"
 #include "hw/misc/sifive_e_prci.h"
 #include "hw/misc/sifive_e_prci.h"
 #include "chardev/char.h"
 #include "chardev/char.h"
-#include "sysemu/arch_init.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 
 
 static const MemMapEntry sifive_e_memmap[] = {
 static const MemMapEntry sifive_e_memmap[] = {

+ 0 - 1
hw/riscv/sifive_u.c

@@ -55,7 +55,6 @@
 #include "hw/intc/sifive_plic.h"
 #include "hw/intc/sifive_plic.h"
 #include "chardev/char.h"
 #include "chardev/char.h"
 #include "net/eth.h"
 #include "net/eth.h"
-#include "sysemu/arch_init.h"
 #include "sysemu/device_tree.h"
 #include "sysemu/device_tree.h"
 #include "sysemu/runstate.h"
 #include "sysemu/runstate.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"

+ 0 - 1
hw/riscv/spike.c

@@ -37,7 +37,6 @@
 #include "hw/char/riscv_htif.h"
 #include "hw/char/riscv_htif.h"
 #include "hw/intc/sifive_clint.h"
 #include "hw/intc/sifive_clint.h"
 #include "chardev/char.h"
 #include "chardev/char.h"
-#include "sysemu/arch_init.h"
 #include "sysemu/device_tree.h"
 #include "sysemu/device_tree.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 
 

+ 0 - 1
hw/riscv/virt.c

@@ -36,7 +36,6 @@
 #include "hw/intc/sifive_plic.h"
 #include "hw/intc/sifive_plic.h"
 #include "hw/misc/sifive_test.h"
 #include "hw/misc/sifive_test.h"
 #include "chardev/char.h"
 #include "chardev/char.h"
-#include "sysemu/arch_init.h"
 #include "sysemu/device_tree.h"
 #include "sysemu/device_tree.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"

+ 0 - 1
monitor/qmp-cmds.c

@@ -27,7 +27,6 @@
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"
 #include "sysemu/runstate.h"
 #include "sysemu/runstate.h"
 #include "sysemu/runstate-action.h"
 #include "sysemu/runstate-action.h"
-#include "sysemu/arch_init.h"
 #include "sysemu/blockdev.h"
 #include "sysemu/blockdev.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "qapi/error.h"
 #include "qapi/error.h"

+ 0 - 1
target/ppc/cpu_init.c

@@ -22,7 +22,6 @@
 #include "disas/dis-asm.h"
 #include "disas/dis-asm.h"
 #include "exec/gdbstub.h"
 #include "exec/gdbstub.h"
 #include "kvm_ppc.h"
 #include "kvm_ppc.h"
-#include "sysemu/arch_init.h"
 #include "sysemu/cpus.h"
 #include "sysemu/cpus.h"
 #include "sysemu/hw_accel.h"
 #include "sysemu/hw_accel.h"
 #include "sysemu/tcg.h"
 #include "sysemu/tcg.h"

+ 0 - 1
target/s390x/cpu-sysemu.c

@@ -34,7 +34,6 @@
 
 
 #include "hw/s390x/pv.h"
 #include "hw/s390x/pv.h"
 #include "hw/boards.h"
 #include "hw/boards.h"
-#include "sysemu/arch_init.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/tcg.h"
 #include "sysemu/tcg.h"
 #include "hw/core/sysemu-cpu-ops.h"
 #include "hw/core/sysemu-cpu-ops.h"