]> git.ipfire.org Git - thirdparty/qemu.git/commit
uninorth: use qdev gpios for PCI IRQs
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 13 Oct 2020 11:49:22 +0000 (12:49 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 18 Oct 2020 15:21:42 +0000 (16:21 +0100)
commit40a0deb74bf433d5fce2cc882a61e4c9c479e9f9
tree2bc65e9238ea85b3deb65a50a4f76e5965ad5076
parentb950914df3a2a936d4eca00eeb4ca0254423d265
uninorth: use qdev gpios for PCI IRQs

Currently an object link property is used to pass a reference to the OpenPIC
into the PCI host bridge so that pci_unin_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 New 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-4-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/pci-host/uninorth.c
hw/ppc/mac_newworld.c
include/hw/pci-host/uninorth.h