summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlue Swirl2009-11-13 20:00:11 +0100
committerBlue Swirl2009-11-13 20:00:11 +0100
commitbc90ff774221e77fe0f8a319ceab3e1fe7169298 (patch)
tree73424eb30571364c127f4bb194bf68bb53388084
parentARM MPCore tweaks (diff)
downloadqemu-bc90ff774221e77fe0f8a319ceab3e1fe7169298.tar.gz
qemu-bc90ff774221e77fe0f8a319ceab3e1fe7169298.tar.xz
qemu-bc90ff774221e77fe0f8a319ceab3e1fe7169298.zip
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;