diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2009-05-20 21:52:32 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2009-05-20 21:52:32 -0700 |
commit | b3d0a01eb3eb8b2025fc0704ef675bc677961e78 (patch) | |
tree | 17bedc9e067582ef48eeadd0935f75ae272f2c6b /src/dev | |
parent | 8d2e51c7f52670055ffe97e221302561b87015a2 (diff) | |
download | gem5-b3d0a01eb3eb8b2025fc0704ef675bc677961e78.tar.xz |
igbe: Fix descriptor cache bug.
Diffstat (limited to 'src/dev')
-rw-r--r-- | src/dev/i8254xGBe.hh | 2 |
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); |