summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2019-12-09 10:03:06 +0100
committerPeter Maydell2019-12-16 11:46:35 +0100
commitb8b69f4c45894ea05a9c334e76178679ec084565 (patch)
tree524e050f21afc1285a5211383f3a4ee691b7a57b /include
parenthw/arm/acpi: enable SHPC native hot plug (diff)
downloadqemu-b8b69f4c45894ea05a9c334e76178679ec084565.tar.gz
qemu-b8b69f4c45894ea05a9c334e76178679ec084565.tar.xz
qemu-b8b69f4c45894ea05a9c334e76178679ec084565.zip
hw/arm/virt: Simplify by moving the gic in the machine state
Make the gic a field in the machine state, and instead of filling an array of qemu_irq and passing it around, directly call qdev_get_gpio_in() on the gic field. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Luc Michel <luc.michel@greensocs.com> Message-id: 20191209090306.20433-1-philmd@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/arm/virt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h
index 0b41083e9d..38f0c33c77 100644
--- a/include/hw/arm/virt.h
+++ b/include/hw/arm/virt.h
@@ -136,6 +136,7 @@ typedef struct {
uint32_t iommu_phandle;
int psci_conduit;
hwaddr highest_gpa;
+ DeviceState *gic;
DeviceState *acpi_dev;
Notifier powerdown_notifier;
} VirtMachineState;