hw/arm/virt: Simplify by moving the gic in the machine state
commitb8b69f4c45894ea05a9c334e76178679ec084565
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 9 Dec 2019 09:03:06 +0000 (9 10:03 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 16 Dec 2019 10:46:35 +0000 (16 10:46 +0000)
tree524e050f21afc1285a5211383f3a4ee691b7a57b
parente04c13cdcf5befd9d08df38d4d34494a802cdf63
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>
hw/arm/virt.c
include/hw/arm/virt.h