mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/arm/allwinner-a10: Simplify by passing IRQs with qdev_pass_gpios()
By calling qdev_pass_gpios() we don't need to hold a copy of the IRQs from the INTC into the SoC state. Instead of filling an array of qemu_irq and passing it around, we can now directly call qdev_get_gpio_in() on the SoC. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20191230110953.25496-5-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
7f0ec9893c
commit
f8a865d36d
2 changed files with 11 additions and 14 deletions
|
@ -23,7 +23,6 @@ typedef struct AwA10State {
|
|||
/*< public >*/
|
||||
|
||||
ARMCPU cpu;
|
||||
qemu_irq irq[AW_A10_PIC_INT_NR];
|
||||
AwA10PITState timer;
|
||||
AwA10PICState intc;
|
||||
AwEmacState emac;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue