grackle: use qdev gpios for PCI IRQs
commitb950914df3a2a936d4eca00eeb4ca0254423d265
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 13 Oct 2020 11:49:21 +0000 (13 12:49 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 18 Oct 2020 15:21:42 +0000 (18 16:21 +0100)
tree442c4eab6849e00adbd935796b42556d119332fd
parent348b8d1a76b4ab4b5a9ec756500547c5f2756d9c
grackle: use qdev gpios for PCI IRQs

Currently an object link property is used to pass a reference to the Heathrow
PIC into the PCI host bridge so that grackle_init_irqs() can connect the PCI
IRQs to the PIC itself.

This can be simplified by defining the PCI IRQs as qdev gpios and then wiring
up the PCI IRQs to the PIC in the Old World machine init function.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201013114922.2946-3-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/pci-host/grackle.c
hw/ppc/mac_oldworld.c