summaryrefslogtreecommitdiff
path: root/src/dev/i8254xGBe.hh
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2009-05-20 21:52:32 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2009-05-20 21:52:32 -0700
commitb3d0a01eb3eb8b2025fc0704ef675bc677961e78 (patch)
tree17bedc9e067582ef48eeadd0935f75ae272f2c6b /src/dev/i8254xGBe.hh
parent8d2e51c7f52670055ffe97e221302561b87015a2 (diff)
downloadgem5-b3d0a01eb3eb8b2025fc0704ef675bc677961e78.tar.xz
igbe: Fix descriptor cache bug.
Diffstat (limited to 'src/dev/i8254xGBe.hh')
-rw-r--r--src/dev/i8254xGBe.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/i8254xGBe.hh b/src/dev/i8254xGBe.hh
index 8020b7091..5ae90eebc 100644
--- 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);