Skip to contentSkip to conversation

ne2000 bug? buffer full/empty

Qemu-devel Marcel Block 1 participant 1 message Apr 2, 2007

lore
Share & tools
lore
#0 lore raw

hi again,

here's a patch for the changes i described before.

best regards
marcel block

ne2000.c renamed from hw/ne2000.c +1 -1
@@ -206,7 +206,7 @@ static int ne2000_buffer_full(NE2000Stat
 
     index = s->curpag << 8;
     boundary = s->boundary << 8;
-    if (index <= boundary)
+    if (index < boundary)
         avail = boundary - index;
     else
         avail = (s->stop - s->start) - (index - boundary);