summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-06 15:50:03 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-06 15:50:03 +0000
commitde9258a87f8cf142b8d565a3c14d3db7a5a1c14b (patch)
treeaf8c0c494b4f95dc5920b99cb88f00f3291122a2 /hw
parent37f53b4c05e504decb408c931178c403807148cb (diff)
downloadqemu-de9258a87f8cf142b8d565a3c14d3db7a5a1c14b.tar.gz
qemu-de9258a87f8cf142b8d565a3c14d3db7a5a1c14b.tar.bz2
qemu-de9258a87f8cf142b8d565a3c14d3db7a5a1c14b.zip
specific VGA BIOS for Cirrus VGA Card
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@905 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/pc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/pc.c b/hw/pc.c
index 788854b293..a40e1d03f2 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -28,6 +28,7 @@
#define BIOS_FILENAME "bios.bin"
#define VGABIOS_FILENAME "vgabios.bin"
+#define VGABIOS_CIRRUS_FILENAME "vgabios-cirrus.bin"
#define LINUX_BOOT_FILENAME "linux_boot.bin"
#define KERNEL_LOAD_ADDR 0x00100000
@@ -320,7 +321,11 @@ void pc_init(int ram_size, int vga_ram_size, int boot_device,
}
/* VGA BIOS load */
- snprintf(buf, sizeof(buf), "%s/%s", bios_dir, VGABIOS_FILENAME);
+ if (cirrus_vga_enabled) {
+ snprintf(buf, sizeof(buf), "%s/%s", bios_dir, VGABIOS_CIRRUS_FILENAME);
+ } else {
+ snprintf(buf, sizeof(buf), "%s/%s", bios_dir, VGABIOS_FILENAME);
+ }
ret = load_image(buf, phys_ram_base + 0x000c0000);
/* setup basic memory access */