diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-11-13 19:00:11 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-11-13 19:00:11 +0000 |
commit | bc90ff774221e77fe0f8a319ceab3e1fe7169298 (patch) | |
tree | 73424eb30571364c127f4bb194bf68bb53388084 /hw | |
parent | c988bfadc9cabb441cfc70cb011df5ee26f2ec5f (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>
Diffstat (limited to 'hw')
-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 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; |