projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d2e51c
)
igbe: Fix descriptor cache bug.
author
Steve Reinhardt
<steve.reinhardt@amd.com>
Thu, 21 May 2009 04:52:32 +0000
(21:52 -0700)
committer
Steve Reinhardt
<steve.reinhardt@amd.com>
Thu, 21 May 2009 04:52:32 +0000
(21:52 -0700)
src/dev/i8254xGBe.hh
patch
|
blob
|
history
diff --git
a/src/dev/i8254xGBe.hh
b/src/dev/i8254xGBe.hh
index 8020b7091c0cf39c4d24a957ccbe2085c5517b66..5ae90eebc82b25510ff9f536be639724e2aa053b 100644
(file)
--- a/
src/dev/i8254xGBe.hh
+++ b/
src/dev/i8254xGBe.hh
@@
-304,7
+304,7
@@
class IGbE : public EtherDevice
int descLeft() const
{
int left = unusedCache.size();
- if (cachePnt >
=
descTail())
+ if (cachePnt > descTail())
left += (descLen() - cachePnt + descTail());
else
left += (descTail() - cachePnt);