From: Nathan Binkert Date: Thu, 9 Oct 2008 11:58:24 +0000 (-0700) Subject: mem: Add a method for setting the time on a packet. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b556dc4119fdaa031b594241eacf51e2139e8490;p=gem5.git mem: Add a method for setting the time on a packet. --- diff --git a/src/mem/request.hh b/src/mem/request.hh index ab8f9d596..613655ea4 100644 --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -221,6 +221,12 @@ class Request : public FastAlloc /** Accessor for time. */ Tick getTime() { assert(validPaddr || validAsidVaddr); return time; } void resetTime() { assert(validPaddr || validAsidVaddr); time = curTick; } + void + setTime(Tick when) + { + assert(validPaddr || validAsidVaddr); + time = when; + } /** Accessor for flags. */ uint32_t getFlags() { assert(validPaddr || validAsidVaddr); return flags; }