summaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-17 10:45:20 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-17 10:45:20 +0000
commit89b6b508929d63b2a3dda18692fcb724afb43336 (patch)
tree225cf51bb0a1212edc82b6c2c422afc152d537ec /hw/pc.c
parentd2269f6f64e1b707fc8ea5d43102589c03dd090e (diff)
downloadqemu-89b6b508929d63b2a3dda18692fcb724afb43336.tar.gz
vga init changes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2114 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/hw/pc.c b/hw/pc.c
index 898d0681e1..b233d8cd01 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -768,8 +768,13 @@ static void pc_init1(int ram_size, int vga_ram_size, int boot_device,
vga_ram_size);
}
} else {
- vga_initialize(pci_bus, ds, phys_ram_base + ram_size, ram_size,
- vga_ram_size, 0, 0);
+ if (pci_enabled) {
+ pci_vga_init(pci_bus, ds, phys_ram_base + ram_size, ram_size,
+ vga_ram_size, 0, 0);
+ } else {
+ isa_vga_init(ds, phys_ram_base + ram_size, ram_size,
+ vga_ram_size);
+ }
}
rtc_state = rtc_init(0x70, 8);