aboutsummaryrefslogtreecommitdiff
path: root/hw/pci_internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pci_internals.h')
-rw-r--r--hw/pci_internals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci_internals.h b/hw/pci_internals.h
index e3c93a3cc5..efaefcded8 100644
--- a/hw/pci_internals.h
+++ b/hw/pci_internals.h
@@ -22,7 +22,7 @@ struct PCIBus {
pci_hotplug_fn hotplug;
DeviceState *hotplug_qdev;
void *irq_opaque;
- PCIDevice *devices[256];
+ PCIDevice *devices[PCI_SLOT_MAX * PCI_FUNC_MAX];
PCIDevice *parent_dev;
target_phys_addr_t mem_base;