diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-06-23 16:15:31 +0900 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-07-11 20:01:00 +0300 |
commit | fecb93c45c749a4c994d8d12bdee17ce2012de9e (patch) | |
tree | f351be04bb60edb60cb493b8c6bf834a4abd8056 /hw/piix_pci.c | |
parent | 498238687fd3a2bf3efb32694732f88ceac72e99 (diff) | |
download | qemu-fecb93c45c749a4c994d8d12bdee17ce2012de9e.tar.gz qemu-fecb93c45c749a4c994d8d12bdee17ce2012de9e.tar.bz2 qemu-fecb93c45c749a4c994d8d12bdee17ce2012de9e.zip |
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 <yamahata@valinux.co.jp>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/piix_pci.c')
-rw-r--r-- | hw/piix_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/piix_pci.c b/hw/piix_pci.c index e947428cc1..3426686e6b 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -233,7 +233,7 @@ PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn, qemu_irq * *pi440fx_state = DO_UPCAST(PCII440FXState, dev, d); piix3 = DO_UPCAST(PIIX3State, dev, - pci_create_simple(b, -1, "PIIX3")); + pci_create_simple_multifunction(b, -1, true, "PIIX3")); piix3->pic = pic; pci_bus_irqs(b, piix3_set_irq, pci_slot_get_pirq, piix3, 4); (*pi440fx_state)->piix3 = piix3; |