aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-11-13 19:00:11 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-11-13 19:00:11 +0000
commitbc90ff774221e77fe0f8a319ceab3e1fe7169298 (patch)
tree73424eb30571364c127f4bb194bf68bb53388084
parentc988bfadc9cabb441cfc70cb011df5ee26f2ec5f (diff)
Fix PPC crash
Because of a typo, structure field vga_bios_size was not initialized properly and a bogus BAR6 for the nonexistent VGA BIOS appeared. The bug was uncovered by c169998802505c244b8bcad562633f29de7d74a4. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/vga-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vga-pci.c b/hw/vga-pci.c
index 479ffb1c96..234d5812e4 100644
--- a/hw/vga-pci.c
+++ b/hw/vga-pci.c
@@ -119,7 +119,7 @@ int pci_vga_init(PCIBus *bus,
dev = pci_create(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_prop_set_uint32(&dev->qdev, "bios-size", vga_bios_size);
qdev_init_nofail(&dev->qdev);
return 0;