mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
pci: Derive PCI host bridges from TYPE_PCI_HOST_BRIDGE
Use PCIHostState and PCI_HOST_BRIDGE() where appropriate. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b44ff9d430
commit
8558d942b6
13 changed files with 45 additions and 47 deletions
|
@ -743,7 +743,7 @@ static void ppc_spapr_init(ram_addr_t ram_size,
|
|||
SPAPR_PCI_MEM_WIN_SIZE,
|
||||
SPAPR_PCI_IO_WIN_ADDR,
|
||||
SPAPR_PCI_MSI_WIN_ADDR);
|
||||
phb = &QLIST_FIRST(&spapr->phbs)->host_state;
|
||||
phb = PCI_HOST_BRIDGE(QLIST_FIRST(&spapr->phbs));
|
||||
|
||||
for (i = 0; i < nb_nics; i++) {
|
||||
NICInfo *nd = &nd_table[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue