From: Nathan Binkert Date: Sun, 15 Jun 2008 02:39:01 +0000 (-0700) Subject: MemReq: Add option to reset the time on a request. X-Git-Tag: m5_2.0_beta6~118 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe325c7f4341b25cae65cbe529caa0a46140501a;p=gem5.git MemReq: Add option to reset the time on a request. --- diff --git a/src/mem/request.hh b/src/mem/request.hh index cc9c6b8bf..85ff8a445 100644 --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -220,6 +220,7 @@ class Request : public FastAlloc int getSize() { assert(validPaddr || validAsidVaddr); return size; } /** Accessor for time. */ Tick getTime() { assert(validPaddr || validAsidVaddr); return time; } + void resetTime() { assert(validPaddr || validAsidVaddr); time = curTick; } /** Accessor for flags. */ uint32_t getFlags() { assert(validPaddr || validAsidVaddr); return flags; }