mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
spapr: move spapr_create_phb() to core machine code
This function is only used when creating the default PHB. Let's rename it and move it to the core machine code for clarity. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
52804c60f1
commit
999c9caf2e
3 changed files with 12 additions and 14 deletions
|
@ -1988,17 +1988,6 @@ static const TypeInfo spapr_phb_info = {
|
|||
}
|
||||
};
|
||||
|
||||
PCIHostState *spapr_create_phb(sPAPRMachineState *spapr, int index)
|
||||
{
|
||||
DeviceState *dev;
|
||||
|
||||
dev = qdev_create(NULL, TYPE_SPAPR_PCI_HOST_BRIDGE);
|
||||
qdev_prop_set_uint32(dev, "index", index);
|
||||
qdev_init_nofail(dev);
|
||||
|
||||
return PCI_HOST_BRIDGE(dev);
|
||||
}
|
||||
|
||||
typedef struct sPAPRFDT {
|
||||
void *fdt;
|
||||
int node_off;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue