From bc90ff774221e77fe0f8a319ceab3e1fe7169298 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Fri, 13 Nov 2009 19:00:11 +0000 Subject: [PATCH] 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 --- hw/vga-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;