From: Steve Reinhardt Date: Thu, 21 May 2009 04:52:32 +0000 (-0700) Subject: igbe: Fix descriptor cache bug. X-Git-Tag: Calvin_Submission~300 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3d0a01eb3eb8b2025fc0704ef675bc677961e78;p=gem5.git igbe: Fix descriptor cache bug. --- 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);