aboutsummaryrefslogtreecommitdiff
path: root/include/hw/arm/virt.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-12-09 10:03:06 +0100
committerPeter Maydell <peter.maydell@linaro.org>2019-12-16 10:46:35 +0000
commitb8b69f4c45894ea05a9c334e76178679ec084565 (patch)
tree524e050f21afc1285a5211383f3a4ee691b7a57b /include/hw/arm/virt.h
parente04c13cdcf5befd9d08df38d4d34494a802cdf63 (diff)
downloadqemu-b8b69f4c45894ea05a9c334e76178679ec084565.zip
qemu-b8b69f4c45894ea05a9c334e76178679ec084565.tar.gz
qemu-b8b69f4c45894ea05a9c334e76178679ec084565.tar.bz2
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/hw/arm/virt.h')
-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 0b41083..38f0c33 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;