mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
b950914df3
commit
40a0deb74b
3 changed files with 25 additions and 46 deletions
|
@ -26,7 +26,6 @@
|
|||
#define UNINORTH_H
|
||||
|
||||
#include "hw/pci/pci_host.h"
|
||||
#include "hw/ppc/openpic.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
/* UniNorth version */
|
||||
|
@ -51,7 +50,6 @@ struct UNINHostState {
|
|||
PCIHostState parent_obj;
|
||||
|
||||
uint32_t ofw_addr;
|
||||
OpenPICState *pic;
|
||||
qemu_irq irqs[4];
|
||||
MemoryRegion pci_mmio;
|
||||
MemoryRegion pci_hole;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue