From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BXyPc-0006y2-Ck for qemu-devel@nongnu.org; Wed, 09 Jun 2004 04:26:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BXyPY-0006xR-Lj for qemu-devel@nongnu.org; Wed, 09 Jun 2004 04:26:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXyPY-0006xO-GI for qemu-devel@nongnu.org; Wed, 09 Jun 2004 04:26:16 -0400 Received: from [81.228.10.111] (helo=av5-2-sn4.m-sp.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BXyOe-0000Vh-FF for qemu-devel@nongnu.org; Wed, 09 Jun 2004 04:25:20 -0400 Received: from smtp2-1-sn4.m-sp.skanova.net (smtp2-1-sn4.m-sp.skanova.net [81.228.10.183]) by av5-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 4289F37E46 for ; Wed, 9 Jun 2004 10:25:19 +0200 (CEST) Received: from putte2k (h151n2fls306o994.telia.com [81.225.243.151]) by smtp2-1-sn4.m-sp.skanova.net (Postfix) with SMTP id 179E237E4A for ; Wed, 9 Jun 2004 10:25:18 +0200 (CEST) Message-ID: <000701c44dfb$540106e0$0401a8c0@putte2k> From: "Mike Nordell" Date: Wed, 9 Jun 2004 10:25:29 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] NE2000 problem found Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ne2000_asic_ioport_write: if (s->dcfg & 0x01) { /* 16 bit access */ + assert(s->rcnt >= 2); + assert(s->rsar + 2 <= s->stop); ne2000_mem_writew(s, s->rsar, val); s->rsar += 2; s->rcnt -= 2; } First assert triggered with: s->dcfg: 0x49 s->rcnt: 1 s->rsar: 0x4156 s->stop: 0xc000 What surprises me the most is that it's coming from an outb, not outw. Is this really correct, or is the ne2000 emulation perhaps missing a differentiation between 16- and 8-bit I/O? I'll add *readb/writeb locally, to see if things go better, and report findings/patch. /Mike