qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] NE2000 problem found


From: Mike Nordell
Subject: [Qemu-devel] NE2000 problem found
Date: Wed, 9 Jun 2004 10:25:29 +0200

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]