summaryrefslogtreecommitdiff
path: root/hw/ne2000.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-14 18:41:52 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-14 18:41:52 +0000
commitf815fa45da704086eafbab1709e85be5dc727f4b (patch)
treea0e55a83e40d715e73a5b4219c39ed9f6c15932d /hw/ne2000.c
parent3512779a88128808eee4c5ecbeb3ad7679f97a50 (diff)
downloadqemu-f815fa45da704086eafbab1709e85be5dc727f4b.tar.gz
qemu-f815fa45da704086eafbab1709e85be5dc727f4b.tar.bz2
qemu-f815fa45da704086eafbab1709e85be5dc727f4b.zip
ne2000 buffer fulness fix (Han Zhu)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1924 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ne2000.c')
-rw-r--r--hw/ne2000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ne2000.c b/hw/ne2000.c
index 674d83e490..e23c6df069 100644
--- a/hw/ne2000.c
+++ b/hw/ne2000.c
@@ -206,7 +206,7 @@ static int ne2000_buffer_full(NE2000State *s)
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);