From: "Mike Nordell" <tamlin@algonet.se>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] NE2000 problem found
Date: Wed, 9 Jun 2004 10:25:29 +0200 [thread overview]
Message-ID: <000701c44dfb$540106e0$0401a8c0@putte2k> (raw)
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
next reply other threads:[~2004-06-09 8:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-09 8:25 Mike Nordell [this message]
2004-06-09 19:43 ` [Qemu-devel] NE2000 problem found Fabrice Bellard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000701c44dfb$540106e0$0401a8c0@putte2k' \
--to=tamlin@algonet.se \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).