mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-15 10:10:13 +00:00
spapr: fix build
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7f76236627
commit
3a26360d1d
@ -51,7 +51,7 @@ static PCIDevice *find_dev(sPAPREnvironment *spapr,
|
|||||||
continue;
|
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;
|
PCIDevice *dev = (PCIDevice *)qdev;
|
||||||
if (dev->devfn == devfn) {
|
if (dev->devfn == devfn) {
|
||||||
return dev;
|
return dev;
|
||||||
@ -397,7 +397,7 @@ int spapr_populate_pci_devices(sPAPRPHBState *phb,
|
|||||||
|
|
||||||
/* Populate PCI devices and allocate IRQs */
|
/* Populate PCI devices and allocate IRQs */
|
||||||
devices = 0;
|
devices = 0;
|
||||||
QLIST_FOREACH(qdev, &bus->qbus.children, sibling) {
|
QTAILQ_FOREACH(qdev, &bus->qbus.children, sibling) {
|
||||||
PCIDevice *dev = DO_UPCAST(PCIDevice, qdev, qdev);
|
PCIDevice *dev = DO_UPCAST(PCIDevice, qdev, qdev);
|
||||||
int irq_index = pci_spapr_map_irq(dev, 0);
|
int irq_index = pci_spapr_map_irq(dev, 0);
|
||||||
uint32_t *irqmap = interrupt_map[devices];
|
uint32_t *irqmap = interrupt_map[devices];
|
||||||
|
Loading…
Reference in New Issue
Block a user