pci: set multifunction property for normal device.
use pci_create_simple_multifunction() for normal device which sets
multifunction bit.
At the moment, only pc_piix.c and mips_malta.c uses multifunction
devices with piix3/4 pci-isa bridge.
And other boards don't populate those devices.
Signed-off-by: Isaku Yamahata <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
diff --git a/hw/piix4.c b/hw/piix4.c
index 6f08c5a..902d6da 100644
--- a/hw/piix4.c
+++ b/hw/piix4.c
@@ -105,7 +105,7 @@
{
PCIDevice *d;
- d = pci_create_simple(bus, devfn, "PIIX4");
+ d = pci_create_simple_multifunction(bus, devfn, true, "PIIX4");
return d->devfn;
}