From patchwork Wed Sep 16 14:29:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 33712 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 4CE37B7B7F for ; Thu, 17 Sep 2009 00:30:00 +1000 (EST) Received: from localhost ([127.0.0.1]:46861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnvW9-000189-SF for incoming@patchwork.ozlabs.org; Wed, 16 Sep 2009 10:29:57 -0400 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 Received: from localhost.localdomain (vpn1-5-114.ams2.redhat.com [10.36.5.114]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8GET90h027214; Wed, 16 Sep 2009 10:29:10 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 16 Sep 2009 16:29:06 +0200 Message-Id: <1253111346-13349-1-git-send-email-quintela@redhat.com> 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] 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 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