mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
uninorth: use object link to pass OpenPIC object to uninorth
Now that the OpenPIC is wired up via the board, we can now remove our temporary PIC qdev pointer property and replace it with an object link instead. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
8ce3f743c7
commit
e7755cc114
3 changed files with 55 additions and 35 deletions
|
@ -27,6 +27,8 @@
|
|||
|
||||
#include "hw/hw.h"
|
||||
|
||||
#include "hw/ppc/openpic.h"
|
||||
|
||||
#define TYPE_UNI_NORTH_PCI_HOST_BRIDGE "uni-north-pci-pcihost"
|
||||
#define TYPE_UNI_NORTH_AGP_HOST_BRIDGE "uni-north-agp-pcihost"
|
||||
#define TYPE_UNI_NORTH_INTERNAL_PCI_HOST_BRIDGE "uni-north-internal-pci-pcihost"
|
||||
|
@ -44,7 +46,8 @@
|
|||
typedef struct UNINState {
|
||||
PCIHostState parent_obj;
|
||||
|
||||
void *pic_irqs;
|
||||
OpenPICState *pic;
|
||||
qemu_irq irqs[4];
|
||||
MemoryRegion pci_mmio;
|
||||
MemoryRegion pci_hole;
|
||||
} UNINState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue