From 2b7a55d6133cae388c0b506ba6f0110bbf9a9318 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 10 Jul 2008 17:32:17 +0100 Subject: [PATCH] ioemu: drop unused 4MB video memory 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 --- hw/pc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/pc.h b/hw/pc.h index a78e0393..5a28cd25 100644 --- 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) -- 2.39.5