]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
ioemu: drop unused 4MB video memory
authorKeir Fraser <kfraser@endor.localdomain>
Thu, 10 Jul 2008 16:32:17 +0000 (17:32 +0100)
committerKeir Fraser <kfraser@endor.localdomain>
Thu, 10 Jul 2008 16:32:17 +0000 (17:32 +0100)
Since we only emulate the cirrus VGA video card which is only able to
expose 4MB video memory, we don't need more than that.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
hw/pc.h

diff --git a/hw/pc.h b/hw/pc.h
index a78e0393bdb739ee46e925868e1a4faa5bcecdee..5a28cd2543155ac9875cbc22b921048fb5aab707 100644 (file)
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -115,7 +115,9 @@ int piix4_init(PCIBus *bus, int devfn);
 
 /* vga.c */
 
-#ifndef TARGET_SPARC
+#if defined(CONFIG_DM)
+#define VGA_RAM_SIZE (4096 * 1024)
+#elif !defined(TARGET_SPARC)
 #define VGA_RAM_SIZE (8192 * 1024)
 #else
 #define VGA_RAM_SIZE (9 * 1024 * 1024)