diff options
author | Nathan Binkert <nate@binkert.org> | 2008-10-09 04:58:24 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-10-09 04:58:24 -0700 |
commit | b556dc4119fdaa031b594241eacf51e2139e8490 (patch) | |
tree | 7fc1c55cf515af8054449802980cd5e6cc6785cc /src | |
parent | e06321091d4e931ff1a4d753e56d76f9746c3cd2 (diff) | |
download | gem5-b556dc4119fdaa031b594241eacf51e2139e8490.tar.xz |
mem: Add a method for setting the time on a packet.
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/request.hh | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |