From patchwork Mon Sep 21 12:35:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 33989 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2187DB7B6B for ; Mon, 21 Sep 2009 22:37:47 +1000 (EST) Received: from localhost ([127.0.0.1]:60998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mpi9I-0006IC-E7 for incoming@patchwork.ozlabs.org; Mon, 21 Sep 2009 08:37:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mpi7D-00054X-VV for qemu-devel@nongnu.org; Mon, 21 Sep 2009 08:35:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mpi79-00053K-Jv for qemu-devel@nongnu.org; Mon, 21 Sep 2009 08:35:35 -0400 Received: from [199.232.76.173] (port=39937 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mpi79-00053A-Ey for qemu-devel@nongnu.org; Mon, 21 Sep 2009 08:35:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54492) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mpi78-0000eq-Uu for qemu-devel@nongnu.org; Mon, 21 Sep 2009 08:35:31 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8LCZUtc029241 for ; Mon, 21 Sep 2009 08:35:30 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8LCZRT4022654; Mon, 21 Sep 2009 08:35:29 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 21 Sep 2009 14:35:17 +0200 Message-Id: <6b781a1bec0f609301d111b0389fa9784f9629c9.1253536404.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 1/2] cirrus_vga: also assign gr0/1 when writting shadow_gr0/1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This is a regression/bug caused by previous vga_cleanup. This fixes Ubuntu installer reported by: Pierre Riteau Signed-off-by: Juan Quintela --- hw/cirrus_vga.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 7e95f10..ae4be82 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -1490,9 +1490,11 @@ cirrus_vga_write_gr(CirrusVGAState * s, unsigned reg_index, int reg_value) #endif switch (reg_index) { case 0x00: // Standard VGA, BGCOLOR 0x000000ff + s->vga.gr[reg_index] = reg_value & gr_mask[reg_index]; s->cirrus_shadow_gr0 = reg_value; break; case 0x01: // Standard VGA, FGCOLOR 0x000000ff + s->vga.gr[reg_index] = reg_value & gr_mask[reg_index]; s->cirrus_shadow_gr1 = reg_value; break; case 0x02: // Standard VGA