From patchwork Thu Mar 15 18:19:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 147061 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B0A65B6EE7 for ; Fri, 16 Mar 2012 05:48:00 +1100 (EST) Received: from localhost ([::1]:56097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8FQ6-00034x-1f for incoming@patchwork.ozlabs.org; Thu, 15 Mar 2012 14:29:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8FPU-0001PW-C3 for qemu-devel@nongnu.org; Thu, 15 Mar 2012 14:28:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8FP9-0005gA-Ou for qemu-devel@nongnu.org; Thu, 15 Mar 2012 14:28:23 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:1526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8FP9-0005fj-Kv for qemu-devel@nongnu.org; Thu, 15 Mar 2012 14:28:03 -0400 X-IronPort-AV: E=Sophos;i="4.73,592,1325480400"; d="scan'208";a="186145605" Received: from ftlpmailmx02.citrite.net ([10.13.107.66]) by FTLPIPO02.CITRIX.COM with ESMTP/TLS/RC4-MD5; 15 Mar 2012 14:28:01 -0400 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.66) with Microsoft SMTP Server id 8.3.213.0; Thu, 15 Mar 2012 14:28:01 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59] helo=localhost.localdomain) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1S8F78-0005F2-MQ; Thu, 15 Mar 2012 18:09:26 +0000 From: Stefano Stabellini To: qemu-devel@nongnu.org Date: Thu, 15 Mar 2012 18:19:03 +0000 Message-ID: <1331835548-537-1-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.63 Cc: jan.kiszka@siemens.com, xen-devel@lists.xensource.com, avi@redhat.com, anthony@codemonkey.ws, Stefano Stabellini Subject: [Qemu-devel] [PATCH v6 1/6] cirrus_vga: do not reset videoram X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org There is no need to set the videoram to 0xff in cirrus_reset, because it is the BIOS' job. Signed-off-by: Stefano Stabellini Reviewed-by: Avi Kivity --- hw/cirrus_vga.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 4edcb94..afedaa4 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -2767,10 +2767,6 @@ static void cirrus_reset(void *opaque) } s->vga.cr[0x27] = s->device_id; - /* Win2K seems to assume that the pattern buffer is at 0xff - initially ! */ - memset(s->vga.vram_ptr, 0xff, s->real_vram_size); - s->cirrus_hidden_dac_lockindex = 5; s->cirrus_hidden_dac_data = 0; }