summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-11-01 16:49:17 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-11-01 16:52:05 -0500
commit3a26360d1df3c3519a45636ec2189429d3df0ecb (patch)
treedd824462c918562a3efc6e93f11c1ca41fae152b /hw
parent7f7623662781fa152c5aa39fd63a2e8766516a2c (diff)
downloadqemu-3a26360d1df3c3519a45636ec2189429d3df0ecb.tar.gz
spapr: fix build
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/spapr_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c
index 2a5e6374c3..7162588543 100644
--- a/hw/spapr_pci.c
+++ b/hw/spapr_pci.c
@@ -51,7 +51,7 @@ static PCIDevice *find_dev(sPAPREnvironment *spapr,
continue;
}
- QLIST_FOREACH(qdev, &phb->host_state.bus->qbus.children, sibling) {
+ QTAILQ_FOREACH(qdev, &phb->host_state.bus->qbus.children, sibling) {
PCIDevice *dev = (PCIDevice *)qdev;
if (dev->devfn == devfn) {
return dev;
@@ -397,7 +397,7 @@ int spapr_populate_pci_devices(sPAPRPHBState *phb,
/* Populate PCI devices and allocate IRQs */
devices = 0;
- QLIST_FOREACH(qdev, &bus->qbus.children, sibling) {
+ QTAILQ_FOREACH(qdev, &bus->qbus.children, sibling) {
PCIDevice *dev = DO_UPCAST(PCIDevice, qdev, qdev);
int irq_index = pci_spapr_map_irq(dev, 0);
uint32_t *irqmap = interrupt_map[devices];