From patchwork Sun Feb 14 07:30:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Kilgour X-Patchwork-Id: 79260 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1E7dKhi008847 for ; Sun, 14 Feb 2010 07:39:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753138Ab0BNHjM (ORCPT ); Sun, 14 Feb 2010 02:39:12 -0500 Received: from mx6-3.i-mecca.net ([65.39.179.42]:48696 "EHLO mx6-3.i-mecca.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752977Ab0BNHjM (ORCPT ); Sun, 14 Feb 2010 02:39:12 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 14 Feb 2010 07:39:21 +0000 (UTC) X-Greylist: delayed 513 seconds by postgrey-1.27 at vger.kernel.org; Sun, 14 Feb 2010 02:39:12 EST Received: from ns6.i-mecca.net (ns6 [127.0.0.1]) by ns6.i-mecca.net (Postfix) with ESMTP id D15387BD3CB for ; Sun, 14 Feb 2010 02:30:37 -0500 (EST) Received: from kilgour.homelinux.com (unknown [97.107.180.199]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ns6.i-mecca.net (Postfix) with ESMTPSA id 7FFC07BD3CB for ; Sun, 14 Feb 2010 02:30:37 -0500 (EST) Message-ID: <4B77A69D.9000307@whiterocker.com> Date: Sat, 13 Feb 2010 23:30:37 -0800 From: Chris Kilgour User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc11 Thunderbird/3.0.1 MIME-Version: 1.0 To: kvm@vger.kernel.org Subject: [PATCH] qemu-kvm: pcnet APROMWE bit location Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/hw/pcnet.c b/hw/pcnet.c index 44b5b31..f889898 100644 --- a/hw/pcnet.c +++ b/hw/pcnet.c @@ -1601,7 +1601,7 @@ static void pcnet_aprom_writeb(void *opaque, uint32_t addr printf("pcnet_aprom_writeb addr=0x%08x val=0x%02x\n", addr, val); #endif /* Check APROMWE bit to enable write access */ - if (pcnet_bcr_readw(s,2) & 0x80) + if (pcnet_bcr_readw(s,2) & 0x100) s->prom[addr & 15] = val; }