OSDN Git Service

hw/arm/sbsa-ref: Simplify by moving the gic in the machine state
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 6 Dec 2019 16:23:03 +0000 (17:23 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 16 Dec 2019 10:46:35 +0000 (10:46 +0000)
commit48ba18e6d3f3908600ed4393a5eaf15bf31404fd
tree446a7915f940bea73e924cef4ab203ecc43724a2
parent0d57b49992200a926c4436eead97ecfc8cc710be
hw/arm/sbsa-ref: 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>
Message-id: 20191206162303.30338-1-philmd@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/sbsa-ref.c