hw: Do not include "exec/address-spaces.h" if it is not necessary
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 28 May 2018 23:27:09 +0000 (20:27 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Jun 2018 12:15:10 +0000 (14:15 +0200)
Code change produced with:
    $ git grep '#include "exec/address-spaces.h"' hw include/hw | \
      cut -d: -f-1 | \
      xargs egrep -L "(get_system_|address_space_)" | \
      xargs sed -i.bak '/#include "exec\/address-spaces.h"/d'

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180528232719.4721-12-f4bug@amsat.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
28 files changed:
hw/arm/bcm2836.c
hw/arm/xlnx-zcu102.c
hw/block/onenand.c
hw/block/pflash_cfi01.c
hw/block/pflash_cfi02.c
hw/char/mcf_uart.c
hw/char/serial.c
hw/char/sh_serial.c
hw/core/loader-fit.c
hw/core/platform-bus.c
hw/display/sm501.c
hw/m68k/mcf5206.c
hw/m68k/mcf_intc.c
hw/misc/arm_integrator_debug.c
hw/net/mcf_fec.c
hw/net/ne2000-isa.c
hw/pci-host/versatile.c
hw/riscv/riscv_htif.c
hw/sh4/sh7750.c
hw/timer/sh_timer.c
include/hw/arm/allwinner-a10.h
include/hw/arm/bcm2835_peripherals.h
include/hw/display/bcm2835_fb.h
include/hw/dma/bcm2835_dma.h
include/hw/misc/bcm2835_mbox.h
include/hw/misc/bcm2835_property.h
include/hw/sh4/sh_intc.h
include/hw/virtio/virtio-access.h

index 3c4b44a53e725745e260bf630668e56d1b8ade22..6805a7d7c81e256d130d8d1d3e4233c8dbc518c5 100644 (file)
@@ -15,7 +15,6 @@
 #include "hw/arm/bcm2836.h"
 #include "hw/arm/raspi_platform.h"
 #include "hw/sysbus.h"
-#include "exec/address-spaces.h"
 
 /* Peripheral base address seen by the CPU */
 #define BCM2836_PERI_BASE       0x3F000000
index b126cf148bd92c1de2b2ce5ae136234735912963..c70278c8c10109c900211844331f3a8207d672a8 100644 (file)
@@ -22,7 +22,6 @@
 #include "hw/arm/xlnx-zynqmp.h"
 #include "hw/boards.h"
 #include "qemu/error-report.h"
-#include "exec/address-spaces.h"
 #include "qemu/log.h"
 #include "sysemu/qtest.h"
 
index ed77f859e9e45550f7c5c8ae97f761d5fa201fb6..ab0c7ea1b3ac6560adf3f47632a2c35f854b9d34 100644 (file)
@@ -27,7 +27,6 @@
 #include "sysemu/block-backend.h"
 #include "sysemu/blockdev.h"
 #include "exec/memory.h"
-#include "exec/address-spaces.h"
 #include "hw/sysbus.h"
 #include "qemu/error-report.h"
 
index 2e8284001daa86030c46a422bb01963ff0f8ee57..e4b5b3c2730967de6a97881d0a1c40c097bf78c6 100644 (file)
@@ -43,7 +43,6 @@
 #include "qapi/error.h"
 #include "qemu/timer.h"
 #include "qemu/bitops.h"
-#include "exec/address-spaces.h"
 #include "qemu/host-utils.h"
 #include "qemu/log.h"
 #include "hw/sysbus.h"
index 75d1ae102649d6cf98b3e13ac0c06dc6c8e1f0cc..a8b3f7f978086b65fa583cfd6cc17d1f68ab45e4 100644 (file)
@@ -41,7 +41,6 @@
 #include "qapi/error.h"
 #include "qemu/timer.h"
 #include "sysemu/block-backend.h"
-#include "exec/address-spaces.h"
 #include "qemu/host-utils.h"
 #include "hw/sysbus.h"
 
index faae083e782f3cfad1b23295456c4a16fad91571..787f985db6bf83e0a7a4e4e2d68922ae59a0c6f3 100644 (file)
@@ -10,7 +10,6 @@
 #include "hw/sysbus.h"
 #include "hw/m68k/mcf.h"
 #include "chardev/char-fe.h"
-#include "exec/address-spaces.h"
 
 typedef struct {
     SysBusDevice parent_obj;
index 2c080c98624319d70fab10b54284c29a600a8854..605b0d02f992cab219ca88d5de01daf30be0f980 100644 (file)
@@ -28,7 +28,6 @@
 #include "chardev/char-serial.h"
 #include "qapi/error.h"
 #include "qemu/timer.h"
-#include "exec/address-spaces.h"
 #include "qemu/error-report.h"
 
 //#define DEBUG_SERIAL
index 835b5378a091273a58b1786e05709a60a83e9bc8..373a40595fd975d1eb0f48147339353ba1d5a6cf 100644 (file)
@@ -28,7 +28,6 @@
 #include "hw/hw.h"
 #include "hw/sh4/sh.h"
 #include "chardev/char-fe.h"
-#include "exec/address-spaces.h"
 #include "qapi/error.h"
 
 //#define DEBUG_SERIAL
index 0c4a7207f4d668b4f1ed2e9e4e6e4e65e8a1886e..6387854b54994c26a92c7c77fada1f058315cdb4 100644 (file)
@@ -18,7 +18,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "exec/address-spaces.h"
 #include "exec/memory.h"
 #include "hw/loader.h"
 #include "hw/loader-fit.h"
index 807cb5ccda0861d01e4718f15261d7ab5f26f228..e473a447468d72e2a266a2de9159ca2e6a0369ef 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "qemu/osdep.h"
 #include "hw/platform-bus.h"
-#include "exec/address-spaces.h"
 #include "qemu/error-report.h"
 #include "sysemu/sysemu.h"
 
index f4bb33c279bf5ba9de25f0827ba22e79537fb1c2..e47be994514277c76fb4f94d18fe33340f61a6f8 100644 (file)
@@ -36,7 +36,6 @@
 #include "hw/pci/pci.h"
 #include "qemu/range.h"
 #include "ui/pixel_ops.h"
-#include "exec/address-spaces.h"
 
 /*
  * Status: 2010/05/07
index 6ad1e4bd2daea226e9dd4d2cdfcead94f79ee9f1..7abd84ac47f5844a9b7e03258645afaf73d1c274 100644 (file)
@@ -14,7 +14,6 @@
 #include "qemu/timer.h"
 #include "hw/ptimer.h"
 #include "sysemu/sysemu.h"
-#include "exec/address-spaces.h"
 
 /* General purpose timer module.  */
 typedef struct {
index 8198afac1e75d58469aa324b32905408111fb03b..393ce284a24a2eb263f7a85225ddadecc8655465 100644 (file)
@@ -11,7 +11,6 @@
 #include "hw/hw.h"
 #include "hw/sysbus.h"
 #include "hw/m68k/mcf.h"
-#include "exec/address-spaces.h"
 
 #define TYPE_MCF_INTC "mcf-intc"
 #define MCF_INTC(obj) OBJECT_CHECK(mcf_intc_state, (obj), TYPE_MCF_INTC)
index 8a5f29559d4749749a81f2bd0965c92f363856c1..533e6e3208df91c4a1e2bcc4c115f21906e5b293 100644 (file)
@@ -17,7 +17,6 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "exec/address-spaces.h"
 #include "hw/misc/arm_integrator_debug.h"
 #include "qemu/log.h"
 
index bfa6b4bccefeacaf06e23500e00cd55f72a7725b..0091e4ecddc23b2db650e97f15e6acf907e66639 100644 (file)
@@ -14,7 +14,6 @@
 #include "hw/sysbus.h"
 /* For crc32 */
 #include <zlib.h>
-#include "exec/address-spaces.h"
 
 //#define DEBUG_FEC 1
 
index 70e5c1d3d4cfe1f5ed30bd9428b67334cd9f5d10..c7fdeb0f6caa5acab6f661470d0c8a850a1e4670 100644 (file)
@@ -27,7 +27,6 @@
 #include "hw/qdev.h"
 #include "ne2000.h"
 #include "sysemu/sysemu.h"
-#include "exec/address-spaces.h"
 #include "qapi/error.h"
 #include "qapi/visitor.h"
 
index d0b02bdc47643f3f74268366649f73deb78f345e..7b19078c801f9aa46fd0f03ec110366e5d53b886 100644 (file)
@@ -12,7 +12,6 @@
 #include "hw/pci/pci.h"
 #include "hw/pci/pci_bus.h"
 #include "hw/pci/pci_host.h"
-#include "exec/address-spaces.h"
 #include "qemu/log.h"
 
 /* Old and buggy versions of QEMU used the wrong mapping from
index f73512941fb6041f495c3e9918ca9304ae62024a..4f7b11dc376897ebd251caa002e13fbd5a99d1c8 100644 (file)
@@ -29,7 +29,6 @@
 #include "chardev/char-fe.h"
 #include "hw/riscv/riscv_htif.h"
 #include "qemu/timer.h"
-#include "exec/address-spaces.h"
 #include "qemu/error-report.h"
 
 #define RISCV_DEBUG_HTIF 0
index 5a7d47d31e8d572e7d5cf0fc50c938e2961c6e61..2dc07a904b17c1ed3fe80e26fee1b2d5c6e7d86c 100644 (file)
@@ -31,7 +31,6 @@
 #include "hw/sh4/sh_intc.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
-#include "exec/address-spaces.h"
 
 #define NB_DEVICES 4
 
index 9afb2d048ced3e413934e38e01bc6092eb9c2789..5f8736cf10a6fd5a0072e1de624e46b9679980db 100644 (file)
@@ -13,7 +13,6 @@
 #include "hw/sh4/sh.h"
 #include "qemu/timer.h"
 #include "qemu/main-loop.h"
-#include "exec/address-spaces.h"
 #include "hw/ptimer.h"
 
 //#define DEBUG_TIMER
index 6b32a99e21998e3a18dc249a3e147e4a8b2a33ad..efb8fc81236209fab608c8ad4b9fad38172f5583 100644 (file)
@@ -11,7 +11,6 @@
 #include "hw/ide/ahci.h"
 
 #include "sysemu/sysemu.h"
-#include "exec/address-spaces.h"
 
 
 #define AW_A10_PIC_REG_BASE     0x01c20400
index 122b286de75a95a503854eca738f8a7901602784..f5b193f6707e4e79f07cf0209cdbc5b299f46f4c 100644 (file)
@@ -12,7 +12,6 @@
 #define BCM2835_PERIPHERALS_H
 
 #include "qemu-common.h"
-#include "exec/address-spaces.h"
 #include "hw/sysbus.h"
 #include "hw/char/bcm2835_aux.h"
 #include "hw/display/bcm2835_fb.h"
index 9a12d7afa204dce93a0778af57106a5614c421f6..ae0a3807f2c7ac5a0766c7f067a362e99f85a024 100644 (file)
@@ -12,7 +12,6 @@
 #define BCM2835_FB_H
 
 #include "hw/sysbus.h"
-#include "exec/address-spaces.h"
 #include "ui/console.h"
 
 #define TYPE_BCM2835_FB "bcm2835-fb"
index 75312e2e170ac0c927676baef6cc4089fbab2953..60138f4d31e8f07bf6734983b4e1994d3bba29cf 100644 (file)
@@ -7,7 +7,6 @@
 #define BCM2835_DMA_H
 
 #include "qemu-common.h"
-#include "exec/address-spaces.h"
 #include "hw/sysbus.h"
 
 typedef struct {
index f4e9ff9ef6d453251749cc0f17fe4db98e70bb41..7e8f3ce86de6147f5d27fae53824308685e7f215 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "bcm2835_mbox_defs.h"
 #include "hw/sysbus.h"
-#include "exec/address-spaces.h"
 
 #define TYPE_BCM2835_MBOX "bcm2835-mbox"
 #define BCM2835_MBOX(obj) \
index edcab603cee465f95f8f566d699f4511aed21db5..11be0dbeac7bd0cdf91b44b9109cb5c300076921 100644 (file)
@@ -7,7 +7,6 @@
 #define BCM2835_PROPERTY_H
 
 #include "hw/sysbus.h"
-#include "exec/address-spaces.h"
 #include "net/net.h"
 #include "hw/display/bcm2835_fb.h"
 
index 7913bc48a2c356fbd9b6445faa146746de43c352..fbcee94ed77b1b9bc77f17b4a797737f7abbda74 100644 (file)
@@ -3,7 +3,6 @@
 
 #include "qemu-common.h"
 #include "hw/irq.h"
-#include "exec/address-spaces.h"
 
 typedef unsigned char intc_enum;
 
index 2e92074bd1c2975d96eff4169ca82160221953c0..bdf58f3119f86d5e86e4ba5ba6fdecaa5f773a90 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "hw/virtio/virtio.h"
 #include "hw/virtio/virtio-bus.h"
-#include "exec/address-spaces.h"
 
 #if defined(TARGET_PPC64) || defined(TARGET_ARM)
 #define LEGACY_VIRTIO_IS_BIENDIAN 1