]> git.proxmox.com Git - mirror_qemu.git/commitdiff
include: Make headers more self-contained
authorMarkus Armbruster <armbru@redhat.com>
Mon, 12 Aug 2019 05:23:31 +0000 (07:23 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 16 Aug 2019 11:31:51 +0000 (13:31 +0200)
Back in 2016, we discussed[1] rules for headers, and these were
generally liked:

1. Have a carefully curated header that's included everywhere first.  We
   got that already thanks to Peter: osdep.h.

2. Headers should normally include everything they need beyond osdep.h.
   If exceptions are needed for some reason, they must be documented in
   the header.  If all that's needed from a header is typedefs, put
   those into qemu/typedefs.h instead of including the header.

3. Cyclic inclusion is forbidden.

This patch gets include/ closer to obeying 2.

It's actually extracted from my "[RFC] Baby steps towards saner
headers" series[2], which demonstrates a possible path towards
checking 2 automatically.  It passes the RFC test there.

[1] Message-ID: <87h9g8j57d.fsf@blackfin.pond.sub.org>
    https://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg03345.html
[2] Message-Id: <20190711122827.18970-1-armbru@redhat.com>
    https://lists.nongnu.org/archive/html/qemu-devel/2019-07/msg02715.html

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190812052359.30071-2-armbru@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
106 files changed:
include/block/raw-aio.h
include/block/write-threshold.h
include/disas/disas.h
include/exec/cputlb.h
include/exec/exec-all.h
include/exec/ioport.h
include/exec/memory-internal.h
include/exec/ram_addr.h
include/exec/softmmu-semi.h
include/exec/tb-hash.h
include/exec/user/thunk.h
include/fpu/softfloat-macros.h
include/hw/acpi/pci.h
include/hw/acpi/tco.h
include/hw/adc/stm32f2xx_adc.h
include/hw/arm/allwinner-a10.h
include/hw/arm/aspeed_soc.h
include/hw/arm/bcm2836.h
include/hw/arm/exynos4210.h
include/hw/arm/fsl-imx25.h
include/hw/arm/fsl-imx31.h
include/hw/arm/sharpsl.h
include/hw/arm/xlnx-zynqmp.h
include/hw/block/fdc.h
include/hw/block/flash.h
include/hw/char/escc.h
include/hw/char/xilinx_uartlite.h
include/hw/core/generic-loader.h
include/hw/cris/etraxfs.h
include/hw/cris/etraxfs_dma.h
include/hw/display/i2c-ddc.h
include/hw/empty_slot.h
include/hw/gpio/bcm2835_gpio.h
include/hw/i2c/aspeed_i2c.h
include/hw/i386/apic_internal.h
include/hw/i386/ioapic_internal.h
include/hw/intc/allwinner-a10-pic.h
include/hw/intc/heathrow_pic.h
include/hw/intc/mips_gic.h
include/hw/isa/vt82c686.h
include/hw/mips/cps.h
include/hw/misc/macio/cuda.h
include/hw/misc/macio/gpio.h
include/hw/misc/macio/macio.h
include/hw/misc/macio/pmu.h
include/hw/misc/mips_cmgcr.h
include/hw/misc/mips_cpc.h
include/hw/misc/pvpanic.h
include/hw/net/allwinner_emac.h
include/hw/net/lance.h
include/hw/nvram/chrp_nvram.h
include/hw/pci-host/sabre.h
include/hw/pci-host/uninorth.h
include/hw/pci/pcie_aer.h
include/hw/ppc/pnv_core.h
include/hw/ppc/ppc4xx.h
include/hw/ppc/spapr_irq.h
include/hw/ppc/spapr_vio.h
include/hw/ppc/spapr_xive.h
include/hw/ppc/xive_regs.h
include/hw/riscv/boot.h
include/hw/riscv/riscv_hart.h
include/hw/riscv/sifive_clint.h
include/hw/riscv/sifive_e.h
include/hw/riscv/sifive_plic.h
include/hw/riscv/sifive_prci.h
include/hw/riscv/sifive_test.h
include/hw/riscv/sifive_u.h
include/hw/riscv/sifive_uart.h
include/hw/riscv/spike.h
include/hw/riscv/virt.h
include/hw/s390x/ap-device.h
include/hw/s390x/css-bridge.h
include/hw/s390x/css.h
include/hw/s390x/tod.h
include/hw/semihosting/console.h
include/hw/sh4/sh_intc.h
include/hw/sparc/sparc64.h
include/hw/ssi/aspeed_smc.h
include/hw/ssi/xilinx_spips.h
include/hw/timer/allwinner-a10-pit.h
include/hw/timer/i8254_internal.h
include/hw/timer/m48t59.h
include/hw/timer/mc146818rtc_regs.h
include/hw/timer/xlnx-zynqmp-rtc.h
include/hw/virtio/virtio-access.h
include/hw/virtio/virtio-gpu-bswap.h
include/hw/virtio/virtio-rng.h
include/hw/watchdog/wdt_aspeed.h
include/libdecnumber/decNumberLocal.h
include/migration/cpu.h
include/monitor/hmp-target.h
include/qemu/atomic128.h
include/qemu/ratelimit.h
include/qemu/thread-win32.h
include/sysemu/balloon.h
include/sysemu/cryptodev-vhost-user.h
include/sysemu/hvf.h
include/sysemu/iothread.h
include/sysemu/kvm_int.h
include/sysemu/memory_mapping.h
include/sysemu/xen-mapcache.h
include/ui/egl-helpers.h
include/ui/input.h
include/ui/spice-display.h
target/hppa/cpu.h

index 0cb7cc74a2979462ccaf046724ff438d7f30168f..4629f24d088199ab11379877e4e69519a5401e9e 100644 (file)
  * Contributions after 2012-01-13 are licensed under the terms of the
  * GNU GPL, version 2 or (at your option) any later version.
  */
+
 #ifndef QEMU_RAW_AIO_H
 #define QEMU_RAW_AIO_H
 
+#include "block/aio.h"
 #include "qemu/coroutine.h"
 #include "qemu/iov.h"
 
index 80d8aab5d03c1a3f38228fcc992749a8d6f94a39..c646f267a45c7139854013e612e0a43aa82b52fc 100644 (file)
@@ -9,9 +9,11 @@
  * This work is licensed under the terms of the GNU LGPL, version 2 or later.
  * See the COPYING.LIB file in the top-level directory.
  */
+
 #ifndef BLOCK_WRITE_THRESHOLD_H
 #define BLOCK_WRITE_THRESHOLD_H
 
+#include "block/block_int.h"
 
 /*
  * bdrv_write_threshold_set:
index 15da511f49c766bb5d368cc848177bcc4c8638b1..ba47e9197cd944c79d017048bffde540cec14ab2 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef QEMU_DISAS_H
 #define QEMU_DISAS_H
 
+#include "exec/hwaddr.h"
 
 #ifdef NEED_CPU_H
 #include "cpu.h"
index 5373188be34542deea80484f29ca97450111e133..a62cfb28d5db00027c3ee397c4ca4b097a2ade9e 100644 (file)
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
+
 #ifndef CPUTLB_H
 #define CPUTLB_H
 
+#include "exec/cpu-common.h"
+
 #if !defined(CONFIG_USER_ONLY)
 /* cputlb.c */
 void tlb_protect_code(ram_addr_t ram_addr);
index 16034ee651e9ddcf2ebe07f9112dc8e9e8207c3c..135aeaab0d8b01e251662e08618fabb55e0b7edc 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef EXEC_ALL_H
 #define EXEC_ALL_H
 
+#include "cpu.h"
 #include "exec/tb-context.h"
 #include "sysemu/cpus.h"
 
index a298b89ce15a3cfd2bd3a36d5caea7c6478337ab..97feb296d234f68f2d9f8ca5251c0ad24b84c9da 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef IOPORT_H
 #define IOPORT_H
 
+#include "exec/memory.h"
+
 #define MAX_IOPORTS     (64 * 1024)
 #define IOPORTS_MASK    (MAX_IOPORTS - 1)
 
index d1a9dd1ec898dfef7346e09236d492c43a3603f1..ef4fb9237127e4aee2e4a0bff9531f3feabcb4df 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef MEMORY_INTERNAL_H
 #define MEMORY_INTERNAL_H
 
+#include "cpu.h"
+
 #ifndef CONFIG_USER_ONLY
 static inline AddressSpaceDispatch *flatview_to_dispatch(FlatView *fv)
 {
index b7b2e60ff62d4af6f5ec9f0a966b753a8d74c919..a327a80cfe1387a900b6989dc06694d31a30b719 100644 (file)
@@ -20,6 +20,7 @@
 #define RAM_ADDR_H
 
 #ifndef CONFIG_USER_ONLY
+#include "cpu.h"
 #include "hw/xen/xen.h"
 #include "sysemu/tcg.h"
 #include "exec/ramlist.h"
index 970837992e75a3b787982c18cfae442c2bbf91c0..fbcae88f4bab73714a674f019f1f303a15a51564 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef SOFTMMU_SEMI_H
 #define SOFTMMU_SEMI_H
 
+#include "cpu.h"
+
 static inline uint64_t softmmu_tget64(CPUArchState *env, target_ulong addr)
 {
     uint64_t val;
index 4f3a37d927dc67df4bd1e5b8c8ed3c00506450ca..805235d321c27390f6e85fc3586c65aec5b16992 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef EXEC_TB_HASH_H
 #define EXEC_TB_HASH_H
 
+#include "exec/cpu-defs.h"
+#include "exec/exec-all.h"
 #include "qemu/xxhash.h"
 
 #ifdef CONFIG_SOFTMMU
index 8d3af5a3be9d8150fb0a88814233f2393b124d63..eae2c27f99daa4f7b02e22911aaad7570c83a0e7 100644 (file)
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
+
 #ifndef THUNK_H
 #define THUNK_H
 
 #include "cpu.h"
+#include "exec/user/abitypes.h"
 
 /* types enums definitions */
 
index c55aa6d1742381dedc89f4fa429b88c87e4dfced..be83a833ec90eabfb21f0b141c1ac72483b4dd49 100644 (file)
@@ -82,6 +82,8 @@ this code that are retained.
 #ifndef FPU_SOFTFLOAT_MACROS_H
 #define FPU_SOFTFLOAT_MACROS_H
 
+#include "fpu/softfloat.h"
+
 /*----------------------------------------------------------------------------
 | Shifts `a' right by the number of bits given in `count'.  If any nonzero
 | bits are shifted off, they are ``jammed'' into the least significant bit of
index 8bbd32cf45d9dd8281bbc4f49ead50cd3b220521..bf2a3ed0bab96e37207b77a9dd5e110f948b62ba 100644 (file)
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
+
 #ifndef HW_ACPI_PCI_H
 #define HW_ACPI_PCI_H
 
+#include "hw/acpi/bios-linker-loader.h"
+
 typedef struct AcpiMcfgInfo {
     uint64_t base;
     uint32_t size;
index d19dd59353313696a62a494d3ae354dfd4a7a5da..726f840cce0b826eac379e4ce4cc8bf7d0fdb865 100644 (file)
@@ -6,9 +6,12 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  */
+
 #ifndef HW_ACPI_TCO_H
 #define HW_ACPI_TCO_H
 
+#include "exec/memory.h"
+#include "migration/vmstate.h"
 
 /* As per ICH9 spec, the internal timer has an error of ~0.6s on every tick */
 #define TCO_TICK_NSEC 600000000LL
index a72f734eb1eb21a4e38bd1ef905ffc3d747b1da1..663b79f4f3a8ef32919e2c674011c7d999eecfec 100644 (file)
@@ -25,6 +25,8 @@
 #ifndef HW_STM32F2XX_ADC_H
 #define HW_STM32F2XX_ADC_H
 
+#include "hw/sysbus.h"
+
 #define ADC_SR    0x00
 #define ADC_CR1   0x04
 #define ADC_CR2   0x08
index e99fe2ea2efa8732547d1154df0b2db72b3e5086..7182ce5c4b2d55147a6388571f90d45345fd1a94 100644 (file)
@@ -11,6 +11,7 @@
 #include "hw/ide/ahci.h"
 
 #include "sysemu/sysemu.h"
+#include "target/arm/cpu.h"
 
 
 #define AW_A10_PIC_REG_BASE     0x01c20400
index cef605ad6bde081decb8a6f5b57c58bcdf552f62..976fd6be93f61433f14167ec4167636a3406d998 100644 (file)
@@ -22,6 +22,7 @@
 #include "hw/ssi/aspeed_smc.h"
 #include "hw/watchdog/wdt_aspeed.h"
 #include "hw/net/ftgmac100.h"
+#include "target/arm/cpu.h"
 
 #define ASPEED_SPIS_NUM  2
 #define ASPEED_WDTS_NUM  3
index a2cb8454dea705dd2ee98fd19096cb28d5d0e536..97187f72be9aa81921e0011721ed6691c7d7401c 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "hw/arm/bcm2835_peripherals.h"
 #include "hw/intc/bcm2836_control.h"
+#include "target/arm/cpu.h"
 
 #define TYPE_BCM283X "bcm283x"
 #define BCM283X(obj) OBJECT_CHECK(BCM283XState, (obj), TYPE_BCM283X)
index aa137271c059a47c3481ded37761f2075bb6ec87..f0f23b0e9b2ee22a0c9c6958b248fd3f48249b5f 100644 (file)
  *
  *  You should have received a copy of the GNU General Public License along
  *  with this program; if not, see <http://www.gnu.org/licenses/>.
- *
  */
 
 #ifndef EXYNOS4210_H
 #define EXYNOS4210_H
 
-#include "exec/memory.h"
+#include "hw/sysbus.h"
 #include "target/arm/cpu-qom.h"
 
 #define EXYNOS4210_NCPUS                    2
index 3280ab1fb0585b19f86747fed482f0b64087f668..241efb52ae043b7aaf3a302f344b4185cdb959eb 100644 (file)
@@ -27,6 +27,7 @@
 #include "hw/i2c/imx_i2c.h"
 #include "hw/gpio/imx_gpio.h"
 #include "exec/memory.h"
+#include "target/arm/cpu.h"
 
 #define TYPE_FSL_IMX25 "fsl,imx25"
 #define FSL_IMX25(obj) OBJECT_CHECK(FslIMX25State, (obj), TYPE_FSL_IMX25)
index e68a81efd750e66a935b8431a00b827352421473..ac5ca9826a494ed0c3249ae953e4b8b84d2323af 100644 (file)
@@ -26,6 +26,7 @@
 #include "hw/i2c/imx_i2c.h"
 #include "hw/gpio/imx_gpio.h"
 #include "exec/memory.h"
+#include "target/arm/cpu.h"
 
 #define TYPE_FSL_IMX31 "fsl,imx31"
 #define FSL_IMX31(obj) OBJECT_CHECK(FslIMX31State, (obj), TYPE_FSL_IMX31)
index 5bf6db1fa250d9d3b713d0337a67431afc74c104..89e168fbff39478e7f294031e9b737e3bc6a2391 100644 (file)
@@ -3,9 +3,12 @@
  *
  * This file is licensed under the GNU GPL.
  */
+
 #ifndef QEMU_SHARPSL_H
 #define QEMU_SHARPSL_H
 
+#include "exec/hwaddr.h"
+
 #define zaurus_printf(format, ...)     \
     fprintf(stderr, "%s: " format, __func__, ##__VA_ARGS__)
 
index 35804ea80a22ffc147d41c8b42a5595b4f078a12..6cb65e7537577a37a9a98563b22819fd6d97fa83 100644 (file)
@@ -32,6 +32,7 @@
 #include "hw/intc/xlnx-zynqmp-ipi.h"
 #include "hw/timer/xlnx-zynqmp-rtc.h"
 #include "hw/cpu/cluster.h"
+#include "target/arm/cpu.h"
 
 #define TYPE_XLNX_ZYNQMP "xlnx,zynqmp"
 #define XLNX_ZYNQMP(obj) OBJECT_CHECK(XlnxZynqMPState, (obj), \
index 8cece84326547eb3ad10d53b7191807adc06a742..f4fe2f471b408019035a87bef94bb7426e390c93 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef HW_FDC_H
 #define HW_FDC_H
 
+#include "exec/hwaddr.h"
+#include "hw/irq.h"
 #include "qapi/qapi-types-block.h"
 
 /* fdc.c */
index 1acaf7de80219cca8b9689fccbca5ea101d6a810..83a75f317003d225f71e570f24021b2e25a56286 100644 (file)
@@ -4,6 +4,7 @@
 /* NOR flash devices */
 
 #include "exec/memory.h"
+#include "migration/vmstate.h"
 
 /* pflash_cfi01.c */
 
index 42aca83611023467edf9a389c2a2a49a7f991793..d5196c53e6f3c36ffa58e74c6c3c8e44e2186533 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "chardev/char-fe.h"
 #include "chardev/char-serial.h"
+#include "hw/sysbus.h"
 #include "ui/input.h"
 
 /* escc.c */
index 634086b6573283894fbb90c01c13d8e7082d9559..99d8bbf40533f9a45f57f70ec971159018a1983b 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef XILINX_UARTLITE_H
 #define XILINX_UARTLITE_H
 
+#include "hw/sysbus.h"
+
 static inline DeviceState *xilinx_uartlite_create(hwaddr addr,
                                         qemu_irq irq,
                                         Chardev *chr)
index dd27c42ab03abe2ae12c066dc8c87419c1c4fe86..9ffce1c5a30c464083f01d4e185a87cee113693b 100644 (file)
@@ -19,6 +19,7 @@
 #define GENERIC_LOADER_H
 
 #include "elf.h"
+#include "hw/qdev-core.h"
 
 typedef struct GenericLoaderState {
     /* <private> */
index 8da965addb68573c79e86f64c60660d915a654e4..494222d315fe30d91bbe3eb1825b12638ab0e824 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "net/net.h"
 #include "hw/cris/etraxfs_dma.h"
+#include "hw/sysbus.h"
 
 /* Instantiate an ETRAXFS Ethernet MAC.  */
 static inline DeviceState *
index f6f33e0980f423476bbb99d5bfeee41a388d2976..31ae360611f464a7aa076f45f34ac37aca8c7295 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef HW_ETRAXFS_DMA_H
 #define HW_ETRAXFS_DMA_H
 
+#include "exec/hwaddr.h"
+#include "hw/irq.h"
+
 struct dma_context_metadata {
        /* data descriptor md */
        uint16_t metadata;
index c29443c5afd4b189e201d4ae10e64db387cfcc6f..1cf53a0c8dbc8244380d6186897c4eede77c5106 100644 (file)
@@ -20,6 +20,7 @@
 #define I2C_DDC_H
 
 #include "hw/display/edid.h"
+#include "hw/i2c/i2c.h"
 
 /* A simple I2C slave which just returns the contents of its EDID blob. */
 struct I2CDDCState {
index 123a9f89890b23892c5565b0010a3d2274b2bb4a..cb9a221aa622a62e9cb33222b3d9bcfb0ac832f0 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef HW_EMPTY_SLOT_H
 #define HW_EMPTY_SLOT_H
 
+#include "exec/hwaddr.h"
+
 /* empty_slot.c */
 void empty_slot_init(hwaddr addr, uint64_t slot_size);
 
index 9f8e0c720c3855a4688a6949fc955bf2cfe22772..b0de0a3c749dbbfa688c396f77a69823369c9b39 100644 (file)
@@ -15,6 +15,7 @@
 #define BCM2835_GPIO_H
 
 #include "hw/sd/sd.h"
+#include "hw/sysbus.h"
 
 typedef struct BCM2835GpioState {
     SysBusDevice parent_obj;
index f9020acdef30feea42edd96ffd4d751626e2a899..a2753f0bbbaa82076b262d7e8517bddb06d327a8 100644 (file)
  *  with this program; if not, write to the Free Software Foundation, Inc.,
  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
 #ifndef ASPEED_I2C_H
 #define ASPEED_I2C_H
 
 #include "hw/i2c/i2c.h"
+#include "hw/sysbus.h"
 
 #define TYPE_ASPEED_I2C "aspeed.i2c"
 #define ASPEED_I2C(obj) \
index 1209eb483ab6c10d1d2cd0f3ee65ba6cd364942a..b04bdd947f8b08dc9a432adb60cefffec690aad8 100644 (file)
@@ -24,6 +24,7 @@
 #include "cpu.h"
 #include "exec/memory.h"
 #include "qemu/timer.h"
+#include "target/i386/cpu-qom.h"
 
 /* APIC Local Vector Table */
 #define APIC_LVT_TIMER                  0
index 07002f966215965518096ce0021a8d9ce423acc8..3d2eec2aa77ca39f779fb1d92202fd1671de5868 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "hw/hw.h"
 #include "exec/memory.h"
+#include "hw/i386/ioapic.h"
 #include "hw/sysbus.h"
 #include "qemu/notify.h"
 
index 1d314a70d9ef1efb614ea82b9dc292d07d4ab59b..a5895401d15fd7ec0db4056bfac8138028fe235e 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef ALLWINNER_A10_PIC_H
 #define ALLWINNER_A10_PIC_H
 
+#include "hw/sysbus.h"
+
 #define TYPE_AW_A10_PIC  "allwinner-a10-pic"
 #define AW_A10_PIC(obj) OBJECT_CHECK(AwA10PICState, (obj), TYPE_AW_A10_PIC)
 
index 6c91ec91bb51eeba119d16749bad603f8c03bfaa..b163e27ab940e9d5f77b93d94008653187ae3eb9 100644 (file)
@@ -26,6 +26,8 @@
 #ifndef HW_INTC_HEATHROW_PIC_H
 #define HW_INTC_HEATHROW_PIC_H
 
+#include "hw/sysbus.h"
+
 #define TYPE_HEATHROW "heathrow"
 #define HEATHROW(obj) OBJECT_CHECK(HeathrowState, (obj), TYPE_HEATHROW)
 
index 902a12b1780f6497126168a4c2e7ec3a33b450aa..8428287bf981f5b85a3f0d8276bcfb5db5fd281d 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "qemu/units.h"
 #include "hw/timer/mips_gictimer.h"
+#include "hw/sysbus.h"
 #include "cpu.h"
 /*
  * GIC Specific definitions
index c3c2b6e786769e298824485a77b5ff7e091098c1..a54c3fe60a0124b1302740444d66004b6755c936 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef HW_VT82C686_H
 #define HW_VT82C686_H
 
+#include "hw/irq.h"
+
 #define TYPE_VT82C686B_SUPERIO "vt82c686b-superio"
 
 /* vt82c686.c */
index aab1af926dff8cb11449d965b615789c202de634..a941c55f27e7f6619a92f054eb21a57ff84c7d94 100644 (file)
@@ -25,6 +25,7 @@
 #include "hw/intc/mips_gic.h"
 #include "hw/misc/mips_cpc.h"
 #include "hw/misc/mips_itu.h"
+#include "target/mips/cpu.h"
 
 #define TYPE_MIPS_CPS "mips-cps"
 #define MIPS_CPS(obj) OBJECT_CHECK(MIPSCPSState, (obj), TYPE_MIPS_CPS)
index 7dad469142369056379cf4d6b032feb15cae29c2..5768075ac5d3b5ddc81c5fe1e4b35a010984821d 100644 (file)
@@ -26,6 +26,8 @@
 #ifndef CUDA_H
 #define CUDA_H
 
+#include "hw/misc/mos6522.h"
+
 /* CUDA commands (2nd byte) */
 #define CUDA_WARM_START                0x0
 #define CUDA_AUTOPOLL                  0x1
index 2838ae5fde93b79ec427c0caed44a78a5bf05541..24a4364b39e70ac69b556195b39f5bd70a50c327 100644 (file)
@@ -26,6 +26,9 @@
 #ifndef MACIO_GPIO_H
 #define MACIO_GPIO_H
 
+#include "hw/ppc/openpic.h"
+#include "hw/sysbus.h"
+
 #define TYPE_MACIO_GPIO "macio-gpio"
 #define MACIO_GPIO(obj) OBJECT_CHECK(MacIOGPIOState, (obj), TYPE_MACIO_GPIO)
 
index 970058b6edfc219ce9f4423bffc994e950470a0b..070a694eb536a373079f59e2e78f758a4cf8e78b 100644 (file)
 #define MACIO_H
 
 #include "hw/char/escc.h"
+#include "hw/ide/internal.h"
 #include "hw/intc/heathrow_pic.h"
 #include "hw/misc/macio/cuda.h"
 #include "hw/misc/macio/gpio.h"
 #include "hw/misc/macio/pmu.h"
+#include "hw/ppc/mac.h"
 #include "hw/ppc/mac_dbdma.h"
 #include "hw/ppc/openpic.h"
 
index d10895ba5f3950bfb102387b0a53921c6581233e..7ef83dee4c5772b6d7cbbd250ddf7601eafc3e7e 100644 (file)
@@ -10,6 +10,9 @@
 #ifndef PMU_H
 #define PMU_H
 
+#include "hw/misc/mos6522.h"
+#include "hw/misc/macio/gpio.h"
+
 /*
  * PMU commands
  */
index c9dfcb4b84c2373668386434a3cb102927594d21..3e6e22327381d24669ef5ffd4c11e3479d4b2113 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef MIPS_CMGCR_H
 #define MIPS_CMGCR_H
 
+#include "hw/sysbus.h"
+
 #define TYPE_MIPS_GCR "mips-gcr"
 #define MIPS_GCR(obj) OBJECT_CHECK(MIPSGCRState, (obj), TYPE_MIPS_GCR)
 
index 72c834e039add7ce4f18a9219cf8ecaee6eb45a6..3f670578b05b366efe9a2da6ae33048d91e4522f 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef MIPS_CPC_H
 #define MIPS_CPC_H
 
+#include "hw/sysbus.h"
+
 #define CPC_ADDRSPACE_SZ    0x6000
 
 /* CPC blocks offsets relative to base address */
index 1ee071a70313e24a97a03e776bc90f08f4636ee7..ae0c8188cef7e6e920b5cbd5d1a91e3247befcf8 100644 (file)
  * See the COPYING file in the top-level directory.
  *
  */
+
 #ifndef HW_MISC_PVPANIC_H
 #define HW_MISC_PVPANIC_H
 
+#include "qom/object.h"
+
 #define TYPE_PVPANIC "pvpanic"
 
 #define PVPANIC_IOPORT_PROP "ioport"
index 905a43deb43d9ccb74731aa4810ec7f1acb1a8d0..5013207d158aa9d426b0f1d0cf0466bd0a0daf7e 100644 (file)
@@ -27,6 +27,7 @@
 #include "net/net.h"
 #include "qemu/fifo8.h"
 #include "hw/net/mii.h"
+#include "hw/sysbus.h"
 
 #define TYPE_AW_EMAC "allwinner-emac"
 #define AW_EMAC(obj) OBJECT_CHECK(AwEmacState, (obj), TYPE_AW_EMAC)
index ffdd35c4d7134291bd45c4ac55187c2763fd059b..0357f5f65c1b3fc5a2a55fdf60ff585ed782ef96 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "net/net.h"
 #include "hw/net/pcnet.h"
+#include "hw/sysbus.h"
 
 #define TYPE_LANCE "lance"
 #define SYSBUS_PCNET(obj) \
index b4f5b2b104579464cac8d8b221d24844abc5659c..09941a9be454e1fc6af79e2eb27f01706ff4f825 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef CHRP_NVRAM_H
 #define CHRP_NVRAM_H
 
+#include "qemu/bswap.h"
+
 /* OpenBIOS NVRAM partition */
 typedef struct {
     uint8_t signature;
index 9afa4938fd83cee9794c2e3875aee97db14169c9..99b5aefbecdda2dd170ac2bfdb0a62c220a05456 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef HW_PCI_HOST_SABRE_H
 #define HW_PCI_HOST_SABRE_H
 
+#include "hw/pci/pci.h"
+#include "hw/pci/pci_host.h"
 #include "hw/sparc/sun4u_iommu.h"
 
 #define MAX_IVEC 0x40
index 060324536aee4f3669896b65071f59dcb0d4852c..9a5cabd4c597630b561862901cd6bcec3f80c902 100644 (file)
@@ -26,7 +26,7 @@
 #define UNINORTH_H
 
 #include "hw/hw.h"
-
+#include "hw/pci/pci_host.h"
 #include "hw/ppc/openpic.h"
 
 /* UniNorth version */
index 729a9439c8a36421a3211c388a7213402f562221..502dcd7eba04b1b4c05b9254840b741a30d07d65 100644 (file)
@@ -22,6 +22,7 @@
 #define QEMU_PCIE_AER_H
 
 #include "hw/hw.h"
+#include "hw/pci/pci_regs.h"
 
 /* definitions which PCIExpressDevice uses */
 
index d0926454a9b36a1824578a0511e1f92faaa3a747..bfbd2ec42aa652fe4061f723cee39ecd7240344e 100644 (file)
@@ -21,6 +21,7 @@
 #define PPC_PNV_CORE_H
 
 #include "hw/cpu/core.h"
+#include "target/ppc/cpu.h"
 
 #define TYPE_PNV_CORE "powernv-cpu-core"
 #define PNV_CORE(obj) \
index 39a7ba1ce6a19de31002304d8fd2a2151b940028..90f8866138e867ec8e72afce55cb72371e8c043d 100644 (file)
 #ifndef PPC4XX_H
 #define PPC4XX_H
 
+#include "hw/ppc/ppc.h"
+#include "exec/cpu-common.h"
+#include "exec/memory.h"
+
 /* PowerPC 4xx core initialization */
 PowerPCCPU *ppc4xx_init(const char *cpu_model,
                         clk_setup_t *cpu_clk, clk_setup_t *tb_clk,
index f965a58f89540a6a68e355ed82e0b98cadb3c38c..cd6e18b05e496b47082a3fc8ea8b72b024d49bb5 100644 (file)
@@ -10,6 +10,9 @@
 #ifndef HW_SPAPR_IRQ_H
 #define HW_SPAPR_IRQ_H
 
+#include "hw/irq.h"
+#include "target/ppc/cpu-qom.h"
+
 /*
  * IRQ range offsets per device type
  */
index 04609f214ea4bb68117f2f817a6894d3e6bedccd..875be28cddebd08de631c4cb967de63ad25faa5b 100644 (file)
@@ -22,6 +22,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "hw/ppc/spapr.h"
 #include "sysemu/dma.h"
 
 #define TYPE_VIO_SPAPR_DEVICE "vio-spapr-device"
index 71971442652497f9c12a418c84a4f6abb61b600e..a39e672f2766d5bef1687c45a0539fc2dff90ca6 100644 (file)
@@ -10,7 +10,9 @@
 #ifndef PPC_SPAPR_XIVE_H
 #define PPC_SPAPR_XIVE_H
 
+#include "hw/ppc/spapr_irq.h"
 #include "hw/ppc/xive.h"
+#include "sysemu/sysemu.h"
 
 #define TYPE_SPAPR_XIVE "spapr-xive"
 #define SPAPR_XIVE(obj) OBJECT_CHECK(SpaprXive, (obj), TYPE_SPAPR_XIVE)
index 1a8c5b5e64f05f3f0b46323a51c30f9d46815295..b0c68ab5f7a69a3dfe301bb149153d098a3f521c 100644 (file)
@@ -16,6 +16,9 @@
 #ifndef PPC_XIVE_REGS_H
 #define PPC_XIVE_REGS_H
 
+#include "qemu/bswap.h"
+#include "qemu/host-utils.h"
+
 /*
  * Interrupt source number encoding on PowerBUS
  */
index d56f2ae3eb5d731d0c7c6995e8a72cbb5103f7b5..1f21c2bef1a6f153e3d6d0d1e37a290f26ee346f 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef RISCV_BOOT_H
 #define RISCV_BOOT_H
 
+#include "exec/cpu-defs.h"
+
 void riscv_find_and_load_firmware(MachineState *machine,
                                   const char *default_machine_firmware,
                                   hwaddr firmware_load_addr);
index 0671d88a443906762708d92273b9b93a9cac9d17..3b52b50571d26ef408eb34e0fd1aebe45917b69c 100644 (file)
@@ -21,6 +21,9 @@
 #ifndef HW_RISCV_HART_H
 #define HW_RISCV_HART_H
 
+#include "hw/sysbus.h"
+#include "target/riscv/cpu.h"
+
 #define TYPE_RISCV_HART_ARRAY "riscv.hart_array"
 
 #define RISCV_HART_ARRAY(obj) \
index e2865be1d18b3a2f7bd5d2933f0c252e5010a22d..ae8286c884cc00c2d2f8205c395db8546ba22de7 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef HW_SIFIVE_CLINT_H
 #define HW_SIFIVE_CLINT_H
 
+#include "hw/sysbus.h"
+
 #define TYPE_SIFIVE_CLINT "riscv.sifive.clint"
 
 #define SIFIVE_CLINT(obj) \
index d175b24cb209403ef019d6eded0c21026f53dfb2..9c868dd7f96a3d7164996a51a0070db93465d865 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef HW_SIFIVE_E_H
 #define HW_SIFIVE_E_H
 
+#include "hw/riscv/riscv_hart.h"
 #include "hw/riscv/sifive_gpio.h"
 
 #define TYPE_RISCV_E_SOC "riscv.sifive.e.soc"
index ce8907f6aa02d7373899df3e85783a90d929f65e..b0edba2884336fa78ecd376ea8c482a0df46ff4f 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef HW_SIFIVE_PLIC_H
 #define HW_SIFIVE_PLIC_H
 
-#include "hw/irq.h"
+#include "hw/sysbus.h"
 
 #define TYPE_SIFIVE_PLIC "riscv.sifive.plic"
 
index bd51c4af3c1c665b34040d06d406017bfcc63411..8b7de134f848514395cf17edadd26e2488102e40 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef HW_SIFIVE_PRCI_H
 #define HW_SIFIVE_PRCI_H
 
+#include "hw/sysbus.h"
+
 enum {
     SIFIVE_PRCI_HFROSCCFG   = 0x0,
     SIFIVE_PRCI_HFXOSCCFG   = 0x4,
index 71d4c9fad7292af199f5ff5539f686c18028ef03..3a603a6eadd57c061f3c517d23682f39c7e97799 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef HW_SIFIVE_TEST_H
 #define HW_SIFIVE_TEST_H
 
+#include "hw/sysbus.h"
+
 #define TYPE_SIFIVE_TEST "riscv.sifive.test"
 
 #define SIFIVE_TEST(obj) \
index 892f0eee21bc926f8c48a9040e98936ed50e2d59..be021ce2566d2fa4e4329f0a9418893d72a1ea44 100644 (file)
@@ -20,6 +20,7 @@
 #define HW_SIFIVE_U_H
 
 #include "hw/net/cadence_gem.h"
+#include "hw/riscv/riscv_hart.h"
 
 #define TYPE_RISCV_U_SOC "riscv.sifive.u.soc"
 #define RISCV_U_SOC(obj) \
index c8dc1c57fd0ba47b4b80bf5fba69077fbdef1be2..65668825a35daa8b0af60629b944bde28dfc325d 100644 (file)
@@ -20,6 +20,9 @@
 #ifndef HW_SIFIVE_UART_H
 #define HW_SIFIVE_UART_H
 
+#include "chardev/char-fe.h"
+#include "hw/sysbus.h"
+
 enum {
     SIFIVE_UART_TXFIFO        = 0,
     SIFIVE_UART_RXFIFO        = 4,
index 641b70da67b64d56e6598fe2278425064f758912..03d870363c7b66fd8a6369d221c0c73011e4ee1c 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef HW_RISCV_SPIKE_H
 #define HW_RISCV_SPIKE_H
 
+#include "hw/riscv/riscv_hart.h"
+#include "hw/sysbus.h"
+
 typedef struct {
     /*< private >*/
     SysBusDevice parent_obj;
index d01a1a85c42671ecbcf7f6a528b1c8c68b5c4481..6e5fbe5d3b089040282bc77ef7c9b73256cc8edb 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef HW_RISCV_VIRT_H
 #define HW_RISCV_VIRT_H
 
+#include "hw/riscv/riscv_hart.h"
+#include "hw/sysbus.h"
+
 typedef struct {
     /*< private >*/
     SysBusDevice parent_obj;
index 765e9082a3dbe5775238824d5d68df865475906c..8df9cd29542f290a50f2a68622c96a73b3ed3008 100644 (file)
@@ -7,9 +7,12 @@
  * your option) any later version. See the COPYING file in the top-level
  * directory.
  */
+
 #ifndef HW_S390X_AP_DEVICE_H
 #define HW_S390X_AP_DEVICE_H
 
+#include "hw/qdev-core.h"
+
 #define AP_DEVICE_TYPE       "ap-device"
 
 typedef struct APDevice {
index 5a0203be5f95061bf65a815c01dd9d4a0a589df1..f7ed2d9a03e4d6021f29387f2317c6a32faaa7fc 100644 (file)
@@ -12,8 +12,9 @@
 
 #ifndef HW_S390X_CSS_BRIDGE_H
 #define HW_S390X_CSS_BRIDGE_H
+
 #include "qom/object.h"
-#include "hw/qdev-core.h"
+#include "hw/sysbus.h"
 
 /* virtual css bridge */
 typedef struct VirtualCssBridge {
index d033387fba8a1cf5e9676c5e9708d9f85c0f241a..f46bcafb16c3f8c80ed967e8901f211d34e17496 100644 (file)
@@ -17,6 +17,7 @@
 #include "hw/s390x/s390_flic.h"
 #include "hw/s390x/ioinst.h"
 #include "sysemu/kvm.h"
+#include "target/s390x/cpu-qom.h"
 
 /* Channel subsystem constants. */
 #define MAX_DEVNO 65535
index 9c4a6000c33179274e676ede25e86ee2f161d610..d71f4ea8a7995390ff988faa1662483a416e5a6c 100644 (file)
@@ -12,7 +12,7 @@
 #define HW_S390_TOD_H
 
 #include "hw/qdev.h"
-#include "s390-tod.h"
+#include "target/s390x/s390-tod.h"
 
 typedef struct S390TOD {
     uint8_t high;
index cfab572c0c384c213b81b5b377bb7872f71899f5..9be9754bcdf776249fc341fa6e5b150446815c98 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef SEMIHOST_CONSOLE_H
 #define SEMIHOST_CONSOLE_H
 
+#include "cpu.h"
+
 /**
  * qemu_semihosting_console_outs:
  * @env: CPUArchState
index b7c2404334bb3be2ee802458a28c5bf8fb4aaa59..3d3efde0598c30590d9a95255afbb27242087c98 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef SH_INTC_H
 #define SH_INTC_H
 
+#include "exec/memory.h"
 #include "hw/irq.h"
 
 typedef unsigned char intc_enum;
index 21ab79e34348e3203b5763b1a30132c43bf4ecc8..4ced36fb5a59684031e7632653b5860cfcdb3830 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef HW_SPARC_SPARC64_H
 #define HW_SPARC_SPARC64_H
 
+#include "target/sparc/cpu-qom.h"
+
 #define IVEC_MAX             0x40
 
 SPARCCPU *sparc64_cpu_devinit(const char *cpu_type, uint64_t prom_addr);
index 591279ba1f43d5ba38a6deac637b6accfa4073d4..aa07dac4fe3724e693138d02e8095f1b5c36f539 100644 (file)
@@ -26,6 +26,7 @@
 #define ASPEED_SMC_H
 
 #include "hw/ssi/ssi.h"
+#include "hw/sysbus.h"
 
 typedef struct AspeedSegments {
     hwaddr addr;
index a0a0ae7584aa16c175c00fd7045a65eb654e5c6b..6a39b55a7bdcd14515ab44d0d80dc2c837fa562d 100644 (file)
@@ -28,6 +28,7 @@
 #include "hw/ssi/ssi.h"
 #include "qemu/fifo32.h"
 #include "hw/stream.h"
+#include "hw/sysbus.h"
 
 typedef struct XilinxSPIPS XilinxSPIPS;
 
index c0cc3e2169e1cae2cde44aa742f3c3e71951c0b2..871c95b5128018b60c37603b8ca2a08a46a5cbcc 100644 (file)
@@ -2,6 +2,7 @@
 #define ALLWINNER_A10_PIT_H
 
 #include "hw/ptimer.h"
+#include "hw/sysbus.h"
 
 #define TYPE_AW_A10_PIT "allwinner-A10-timer"
 #define AW_A10_PIT(obj) OBJECT_CHECK(AwA10PITState, (obj), TYPE_AW_A10_PIT)
index c37a438f82e293733db3d87853d392a7e6b5e50e..e611c6f227bf9ee430b1973954ee7ade17018903 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "hw/hw.h"
 #include "hw/isa/isa.h"
+#include "hw/timer/i8254.h"
 #include "qemu/timer.h"
 
 typedef struct PITChannelState {
index 43efc91f567ceeb22c0ad17e6716d9a6ab56de69..d3fb50e08cae8fde3816409602f5303856be8747 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef HW_M48T59_H
 #define HW_M48T59_H
 
+#include "exec/hwaddr.h"
+#include "hw/irq.h"
 #include "qom/object.h"
 
 #define TYPE_NVRAM "nvram"
index c62f17bf2d3690b033b8501c880b4d2d00a10e0a..bfbb57e57012d6ed6b4f77f68f6238d929aad034 100644 (file)
@@ -25,6 +25,8 @@
 #ifndef MC146818RTC_REGS_H
 #define MC146818RTC_REGS_H
 
+#include "qemu/timer.h"
+
 #define RTC_ISA_IRQ 8
 
 #define RTC_SECONDS             0
index 6e9134edf63f18f80a0fae8e842a49f4b583f187..97e32322ed705be520d602a1eea19b609eb312d6 100644 (file)
@@ -28,6 +28,7 @@
 #define HW_TIMER_XLNX_ZYNQMP_RTC_H
 
 #include "hw/register.h"
+#include "hw/sysbus.h"
 
 #define TYPE_XLNX_ZYNQMP_RTC "xlnx-zynmp.rtc"
 
index bdf58f3119f86d5e86e4ba5ba6fdecaa5f773a90..6818a23a2d351858dd60e4b3b72b2e1c86b416da 100644 (file)
@@ -16,6 +16,7 @@
 #ifndef QEMU_VIRTIO_ACCESS_H
 #define QEMU_VIRTIO_ACCESS_H
 
+#include "exec/hwaddr.h"
 #include "hw/virtio/virtio.h"
 #include "hw/virtio/virtio-bus.h"
 
index 38d12160f6a9176325cd6f3f2369a22153e55e69..203f9e17189ee7b4c8c3aba684766d6dff05b8fc 100644 (file)
@@ -15,6 +15,7 @@
 #define HW_VIRTIO_GPU_BSWAP_H
 
 #include "qemu/bswap.h"
+#include "standard-headers/linux/virtio_gpu.h"
 
 static inline void
 virtio_gpu_ctrl_hdr_bswap(struct virtio_gpu_ctrl_hdr *hdr)
index 922dce7caccf7f05bb9e6d100893d9cd30676bf0..ff699335e3b9a18762d6306d6e099855241c5195 100644 (file)
@@ -12,6 +12,7 @@
 #ifndef QEMU_VIRTIO_RNG_H
 #define QEMU_VIRTIO_RNG_H
 
+#include "hw/virtio/virtio.h"
 #include "sysemu/rng.h"
 #include "sysemu/rng-random.h"
 #include "standard-headers/linux/virtio_rng.h"
index daef0c0e230bfa2627a05300cdf52c91581e5985..8c5691ce20476723af5e8bd6cb27c272bc46b671 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef WDT_ASPEED_H
 #define WDT_ASPEED_H
 
+#include "hw/misc/aspeed_scu.h"
 #include "hw/sysbus.h"
 
 #define TYPE_ASPEED_WDT "aspeed.wdt"
index 12cf1d8b6f34cc9980faaf185481282e71cc9eb2..4d53c077f2af7249faa107eb5f9c12abbf139b1e 100644 (file)
@@ -44,6 +44,7 @@
   #define DECNLAUTHOR  "Mike Cowlishaw"              /* Who to blame */
 
   #include "libdecnumber/dconfig.h"
+  #include "libdecnumber/decContext.h"
 
   /* Conditional code flag -- set this to match hardware platform     */
   /* 1=little-endian, 0=big-endian                                   */
index a40bd3549f4743f7bf0c7c70feb32df0958c084f..da1618d6206fa439cee59b2fd66c34632fc65970 100644 (file)
@@ -1,7 +1,10 @@
 /* Declarations for use for CPU state serialization.  */
+
 #ifndef MIGRATION_CPU_H
 #define MIGRATION_CPU_H
 
+#include "exec/cpu-defs.h"
+
 #if TARGET_LONG_BITS == 64
 #define qemu_put_betl qemu_put_be64
 #define qemu_get_betl qemu_get_be64
index 454e8ed15545941bdd3ba21233af5eedb9d97e3c..8b7820a3ad53d53fdb737c3b5e31c67264793e92 100644 (file)
@@ -25,6 +25,8 @@
 #ifndef MONITOR_HMP_TARGET_H
 #define MONITOR_HMP_TARGET_H
 
+#include "cpu.h"
+
 #define MD_TLONG 0
 #define MD_I32   1
 
index ddd0d55d31c8e3457f8585b26f930ea889862183..6b34484e15ca88fb5dd70012c1d675a8d840d3dc 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef QEMU_ATOMIC128_H
 #define QEMU_ATOMIC128_H
 
+#include "qemu/int128.h"
+
 /*
  * GCC is a house divided about supporting large atomic operations.
  *
index 1b38291823b7fef5ac596557b0269f0c38b8887a..01da8d63f149264144465e935c672d91c0849e13 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef QEMU_RATELIMIT_H
 #define QEMU_RATELIMIT_H
 
+#include "qemu/timer.h"
+
 typedef struct {
     int64_t slice_start_time;
     int64_t slice_end_time;
index 50af5dd7ab863c486e0d26356c72c035d2c5313c..d0a1a9597eb05a66df50de293f00fea7cb2f5173 100644 (file)
@@ -47,6 +47,6 @@ struct QemuThread {
 };
 
 /* Only valid for joinable threads.  */
-HANDLE qemu_thread_get_handle(QemuThread *thread);
+HANDLE qemu_thread_get_handle(struct QemuThread *thread);
 
 #endif
index c8f61452574e7474a9a1e2691356e9cb6224be35..aea0c449850e941d6e88893fed3fac31bcc55124 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef QEMU_BALLOON_H
 #define QEMU_BALLOON_H
 
+#include "exec/cpu-common.h"
 #include "qapi/qapi-types-misc.h"
 
 typedef void (QEMUBalloonEvent)(void *opaque, ram_addr_t target);
index 6debf53fc53b58f5bfb2ce8e18b73f3581116297..0d3421e7e8ca2ec315d35d1bce62b8dd4e5014fd 100644 (file)
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  *
  */
+
 #ifndef CRYPTODEV_VHOST_USER_H
 #define CRYPTODEV_VHOST_USER_H
 
+#include "sysemu/cryptodev-vhost.h"
+
 #define VHOST_USER_MAX_AUTH_KEY_LEN    512
 #define VHOST_USER_MAX_CIPHER_KEY_LEN  64
 
index d275b5a843c7f93f55ea83df1e88b38edb1e9fb2..dd1722f2df42e3f2e6aefb9f3a711881d34cee86 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef HVF_H
 #define HVF_H
 
+#include "cpu.h"
 #include "qemu/bitops.h"
 #include "exec/memory.h"
 #include "sysemu/accel.h"
index 5f6240d5cb7fcb605071bfa00a430e6159e47f75..61814864017476071fde1eca94ebd338757cc97e 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "block/aio.h"
 #include "qemu/thread.h"
+#include "qom/object.h"
 
 #define TYPE_IOTHREAD "iothread"
 
index 31df465fdccd9203834c778836d196a15bf0e9df..787dbc7770e6726723648d5d535c4b2c296bc588 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef QEMU_KVM_INT_H
 #define QEMU_KVM_INT_H
 
+#include "exec/cpu-common.h"
+#include "exec/memory.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/accel.h"
 #include "sysemu/kvm.h"
index 58452457ce0583fa007b74f819f50fc3ffd2b3ac..1b440df486fef8c22228a0d2e1fa3f318e398dc2 100644 (file)
@@ -15,6 +15,8 @@
 #define MEMORY_MAPPING_H
 
 #include "qemu/queue.h"
+#include "exec/cpu-common.h"
+#include "exec/cpu-defs.h"
 #include "exec/memory.h"
 
 typedef struct GuestPhysBlock {
index a03e2f1878fe85291e4c9d1449a53719daa7591b..c8e7c2f6cf51aa39cc2230de6196e43d99afff34 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef XEN_MAPCACHE_H
 #define XEN_MAPCACHE_H
 
+#include "exec/cpu-common.h"
+
 typedef hwaddr (*phys_offset_to_gaddr_t)(hwaddr phys_offset,
                                          ram_addr_t size);
 #ifdef CONFIG_XEN
index d714127799135272f0d50f22bff477e2f18f2d0c..58bd3a1ec4bc6ff7da024f42cb84b208d270b9d7 100644 (file)
@@ -4,6 +4,9 @@
 #include <epoxy/gl.h>
 #include <epoxy/egl.h>
 #include <gbm.h>
+#include "qapi/qapi-types-ui.h"
+#include "ui/console.h"
+#include "ui/shader.h"
 
 extern EGLDisplay *qemu_egl_display;
 extern EGLConfig qemu_egl_config;
index 8c8ccb999f0fc03559412a9fdb7c8477ae014d6e..c86219a1c11a0015c00659530297caec67475ca6 100644 (file)
@@ -2,6 +2,7 @@
 #define INPUT_H
 
 #include "qapi/qapi-types-ui.h"
+#include "qemu/notify.h"
 
 #define INPUT_EVENT_MASK_KEY   (1<<INPUT_EVENT_KIND_KEY)
 #define INPUT_EVENT_MASK_BTN   (1<<INPUT_EVENT_KIND_BTN)
index eed60e4faec7ecb688f0cd80b5334a92e169dbf4..58bb5b4c53166b2f02ad8010caaafa2868189d41 100644 (file)
@@ -18,6 +18,7 @@
 #ifndef UI_SPICE_DISPLAY_H
 #define UI_SPICE_DISPLAY_H
 
+#include <spice.h>
 #include <spice/ipc_ring.h>
 #include <spice/enums.h>
 #include <spice/qxl_dev.h>
index aab251bc4bb90c81e89521934549100eb9c3c82e..e9fba96be9dfe89fcd13fa9dd788ac396f837009 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "cpu-qom.h"
 #include "exec/cpu-defs.h"
-
+#include "exec/memory.h"
 
 /* PA-RISC 1.x processors have a strong memory model.  */
 /* ??? While we do not yet implement PA-RISC 2.0, those processors have