diff options
Diffstat (limited to 'hw/spapr.c')
-rw-r--r-- | hw/spapr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/spapr.c b/hw/spapr.c index f8b53e9c1e..c34b767c6e 100644 --- a/hw/spapr.c +++ b/hw/spapr.c @@ -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]; |