From patchwork Mon Feb 15 01:53:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: pcnet APROMWE bit location Date: Sun, 14 Feb 2010 15:53:08 -0000 From: Chris Kilgour X-Patchwork-Id: 45343 Message-Id: <4B78A904.9020700@whiterocker.com> To: qemu-devel@nongnu.org I don't subscribe to the list, so please excuse any breach of etiquette. According to AMD document 21485D pp.141, APROMWE is bit 8 of BCR2. Signed-off-by: Christopher Kilgour whiterocker.com> --- 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; }