diff options
author | Markus Armbruster | 2009-09-25 03:53:48 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-10-05 16:32:53 +0200 |
commit | 48042d861e364c04d0431cc6f52594ea00267c80 (patch) | |
tree | 98301ac79d5fac590a465d4d4d0c0064003ba43c /hw/vga-pci.c | |
parent | set correct CS seg limit and flags on sipi (diff) | |
download | qemu-48042d861e364c04d0431cc6f52594ea00267c80.tar.gz qemu-48042d861e364c04d0431cc6f52594ea00267c80.tar.xz qemu-48042d861e364c04d0431cc6f52594ea00267c80.zip |
Fix pci_vga_init() not to ignore bus argument
Commit a414c306 converted all VGA devices to qdev. It used
pci_create_simple() for all devices, except for this one it used
pci_create(). That's wrong, because it uses PCI bus#0 regardless of
the bus argument. Fix by switching to pci_create_noinit().
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vga-pci.c')
-rw-r--r-- | hw/vga-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vga-pci.c b/hw/vga-pci.c index ccc78e5b8a..17b373234f 100644 --- a/hw/vga-pci.c +++ b/hw/vga-pci.c @@ -125,7 +125,7 @@ int pci_vga_init(PCIBus *bus, { PCIDevice *dev; - dev = pci_create("VGA", NULL); + dev = pci_create_noinit(bus, -1, "VGA"); qdev_prop_set_uint32(&dev->qdev, "bios-offset", vga_bios_offset); qdev_prop_set_uint32(&dev->qdev, "bios-size", vga_bios_offset); qdev_init(&dev->qdev); |