mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Include hw/qdev-properties.h less
In my "build everything" tree, changing hw/qdev-properties.h triggers a recompile of some 2700 out of 6600 objects (not counting tests and objects that don't depend on qemu/osdep.h). Many places including hw/qdev-properties.h (directly or via hw/qdev.h) actually need only hw/qdev-core.h. Include hw/qdev-core.h there instead. hw/qdev.h is actually pointless: all it does is include hw/qdev-core.h and hw/qdev-properties.h, which in turn includes hw/qdev-core.h. Replace the remaining uses of hw/qdev.h by hw/qdev-properties.h. While there, delete a few superfluous inclusions of hw/qdev-core.h. Touching hw/qdev-properties.h now recompiles some 1200 objects. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: "Daniel P. Berrangé" <berrange@redhat.com> Cc: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190812052359.30071-22-armbru@redhat.com>
This commit is contained in:
parent
db72581598
commit
a27bd6c779
497 changed files with 461 additions and 117 deletions
|
@ -29,7 +29,7 @@
|
|||
#include "trace.h"
|
||||
#include "sysemu/hax.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "hw/qdev.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "migration/qemu-file-types.h"
|
||||
#include "migration/vmstate.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "qemu/module.h"
|
||||
#include "gic_internal.h"
|
||||
#include "hw/arm/linux-boot-if.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "migration/vmstate.h"
|
||||
|
||||
static int gic_pre_save(void *opaque)
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/pci/msi.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "qemu/log.h"
|
||||
#include "qemu/module.h"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "qemu/module.h"
|
||||
#include "qom/cpu.h"
|
||||
#include "hw/intc/arm_gicv3_common.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "gicv3_internal.h"
|
||||
#include "hw/arm/linux-boot-if.h"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "qapi/error.h"
|
||||
#include "qemu/module.h"
|
||||
#include "hw/intc/arm_gicv3_its_common.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "kvm_arm.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "qemu/timer.h"
|
||||
#include "hw/intc/armv7m_nvic.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "target/arm/cpu.h"
|
||||
#include "exec/exec-all.h"
|
||||
#include "qemu/log.h"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "qemu/module.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
//#include "pc.h"
|
||||
//#include "etraxfs.h"
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include "hw/arm/exynos4210.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
|
||||
//#define DEBUG_COMBINER
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "migration/vmstate.h"
|
||||
#include "qemu/module.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/arm/exynos4210.h"
|
||||
|
||||
enum ExtGicId {
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "cpu.h"
|
||||
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/sparc/grlib.h"
|
||||
|
||||
#include "trace.h"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "hw/i386/pc.h"
|
||||
#include "hw/isa/i8259_internal.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "monitor/monitor.h"
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "hw/i386/ioapic.h"
|
||||
#include "hw/i386/ioapic_internal.h"
|
||||
#include "hw/pci/msi.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "hw/i386/apic-msidef.h"
|
||||
#include "hw/i386/x86-iommu.h"
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "kvm_mips.h"
|
||||
#include "hw/intc/mips_gic.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
|
||||
static void mips_gic_set_vp_irq(MIPSGICState *gic, int vp, int pin)
|
||||
{
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/arm/omap.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/error-report.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "qemu/module.h"
|
||||
#include "qapi/error.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "exec/memory.h"
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#include "hw/pci/pci.h"
|
||||
#include "hw/ppc/openpic.h"
|
||||
#include "hw/ppc/ppc_e500.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "hw/pci/msi.h"
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "hw/ppc/openpic.h"
|
||||
#include "hw/ppc/openpic_kvm.h"
|
||||
#include "hw/pci/msi.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "qemu/log.h"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "hw/ppc/pnv_xscom.h"
|
||||
#include "hw/ppc/pnv_xive.h"
|
||||
#include "hw/ppc/xive_regs.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/ppc/ppc.h"
|
||||
|
||||
#include <libfdt.h>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "qemu/module.h"
|
||||
#include "hw/intc/realview_gic.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
|
||||
static void realview_gic_set_irq(void *opaque, int irq, int level)
|
||||
{
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "hw/s390x/ioinst.h"
|
||||
#include "hw/s390x/s390_flic.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/s390x/css.h"
|
||||
#include "trace.h"
|
||||
#include "cpu.h"
|
||||
#include "hw/qdev.h"
|
||||
#include "qapi/error.h"
|
||||
#include "hw/s390x/s390-virtio-ccw.h"
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "hw/ppc/spapr_xive.h"
|
||||
#include "hw/ppc/xive.h"
|
||||
#include "hw/ppc/xive_regs.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
|
||||
/*
|
||||
* XIVE Virtualization Controller BAR and Thread Managment BAR that we
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include "trace.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "hw/ppc/xics.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "qemu/error-report.h"
|
||||
#include "qemu/module.h"
|
||||
#include "qapi/visitor.h"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "qemu/module.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
|
||||
#define D(x)
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include "qemu/module.h"
|
||||
#include "hw/intc/xlnx-pmu-iomod-intc.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
|
||||
#ifndef XLNX_PMU_IO_INTC_ERR_DEBUG
|
||||
#define XLNX_PMU_IO_INTC_ERR_DEBUG 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue