summaryrefslogtreecommitdiffstats
path: root/include/hw/pci-host/spapr.h
diff options
context:
space:
mode:
authorCédric Le Goater2017-02-27 15:29:16 +0100
committerDavid Gibson2017-03-01 01:23:39 +0100
commitf7759e4331ed04b2128af36efd395e55e3076406 (patch)
treeebc9f5ac46e0a2d59f0b3406d2a6cd62843387fb /include/hw/pci-host/spapr.h
parentppc/xics: use the QOM interface under the sPAPR machine (diff)
downloadqemu-f7759e4331ed04b2128af36efd395e55e3076406.tar.gz
qemu-f7759e4331ed04b2128af36efd395e55e3076406.tar.xz
qemu-f7759e4331ed04b2128af36efd395e55e3076406.zip
ppc/xics: use the QOM interface to get irqs
Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/pci-host/spapr.h')
-rw-r--r--include/hw/pci-host/spapr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/pci-host/spapr.h b/include/hw/pci-host/spapr.h
index 092294ed5a..dfa76143f3 100644
--- a/include/hw/pci-host/spapr.h
+++ b/include/hw/pci-host/spapr.h
@@ -106,7 +106,7 @@ static inline qemu_irq spapr_phb_lsi_qirq(struct sPAPRPHBState *phb, int pin)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
- return xics_get_qirq(spapr->xics, phb->lsi_table[pin].irq);
+ return xics_get_qirq(XICS_FABRIC(spapr), phb->lsi_table[pin].irq);
}
PCIHostState *spapr_create_phb(sPAPRMachineState *spapr, int index);