From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnvVV-00015Q-66 for qemu-devel@nongnu.org; Wed, 16 Sep 2009 10:29:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnvVQ-0000u5-G7 for qemu-devel@nongnu.org; Wed, 16 Sep 2009 10:29:16 -0400 Received: from [199.232.76.173] (port=42567 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnvVQ-0000tl-BO for qemu-devel@nongnu.org; Wed, 16 Sep 2009 10:29:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19433) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnvVP-0006Rf-Qt for qemu-devel@nongnu.org; Wed, 16 Sep 2009 10:29:12 -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 n8GETA2o028086 for ; Wed, 16 Sep 2009 10:29:11 -0400 From: Juan Quintela Date: Wed, 16 Sep 2009 16:29:06 +0200 Message-Id: <1253111346-13349-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH] cirrus_vga: also assign gr0/1 when writting shadow_gr0/1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 004ae7d..9dfe76a 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 -- 1.6.2.5