Received: from eggs.gnu.org ([140.186.70.92]:36149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R48Dm-0006RS-1n for qemu-devel@nongnu.org; Thu, 15 Sep 2011 05:27:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R48Dk-0004sj-Fj for qemu-devel@nongnu.org; Thu, 15 Sep 2011 05:27:02 -0400 Received: from goliath.siemens.de ([192.35.17.28]:21521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R48Dj-0004rf-S2 for qemu-devel@nongnu.org; Thu, 15 Sep 2011 05:27:00 -0400 Message-ID: <4E71C4E0.9000007@siemens.com> Date: Thu, 15 Sep 2011 11:26:56 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] vga: Respect isa_mem_base when registering chain4 alias List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel This does not yet unbreak PPC (which has its own problems) but potentially other non-x86 systems where isa_mem_base is != 0. Signed-off-by: Jan Kiszka --- hw/vga.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/vga.c b/hw/vga.c index 125fb29..0a0c5a6 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -181,6 +181,7 @@ static void vga_update_memory_access(VGACommonState *s) size = 0x8000; break; } + base += isa_mem_base; region = g_malloc(sizeof(*region)); memory_region_init_alias(region, "vga.chain4", &s->vram, offset, size); memory_region_add_subregion_overlap(s->legacy_address_space, base, -- 1.7.3.4