e500: name openpic and pci host bridge
Signed-off-by: Michael Davidsaver <mdavidsaver@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
94ad93bd97
commit
e75ce32a75
@ -685,6 +685,8 @@ static DeviceState *ppce500_init_mpic_qemu(PPCE500Params *params,
|
||||
int i, j, k;
|
||||
|
||||
dev = qdev_create(NULL, TYPE_OPENPIC);
|
||||
object_property_add_child(qdev_get_machine(), "pic", OBJECT(dev),
|
||||
&error_fatal);
|
||||
qdev_prop_set_uint32(dev, "model", params->mpic_version);
|
||||
qdev_prop_set_uint32(dev, "nb_cpus", smp_cpus);
|
||||
|
||||
@ -884,6 +886,8 @@ void ppce500_init(MachineState *machine, PPCE500Params *params)
|
||||
|
||||
/* PCI */
|
||||
dev = qdev_create(NULL, "e500-pcihost");
|
||||
object_property_add_child(qdev_get_machine(), "pci-host", OBJECT(dev),
|
||||
&error_abort);
|
||||
qdev_prop_set_uint32(dev, "first_slot", params->pci_first_slot);
|
||||
qdev_prop_set_uint32(dev, "first_pin_irq", pci_irq_nrs[0]);
|
||||
qdev_init_nofail(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user