mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
pci: Pass size to pci_bus_new_inplace()
To be passed to qbus_create_inplace(). Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
c6baf942e0
commit
dd301ca607
4 changed files with 4 additions and 4 deletions
|
@ -155,7 +155,7 @@ static void raven_pcihost_initfn(Object *obj)
|
|||
MemoryRegion *address_space_io = get_system_io();
|
||||
DeviceState *pci_dev;
|
||||
|
||||
pci_bus_new_inplace(&s->pci_bus, DEVICE(obj), NULL,
|
||||
pci_bus_new_inplace(&s->pci_bus, sizeof(s->pci_bus), DEVICE(obj), NULL,
|
||||
address_space_mem, address_space_io, 0, TYPE_PCI_BUS);
|
||||
h->bus = &s->pci_bus;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue