summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-10-09 04:58:24 -0700
committerNathan Binkert <nate@binkert.org>2008-10-09 04:58:24 -0700
commitb556dc4119fdaa031b594241eacf51e2139e8490 (patch)
tree7fc1c55cf515af8054449802980cd5e6cc6785cc /src/mem
parente06321091d4e931ff1a4d753e56d76f9746c3cd2 (diff)
downloadgem5-b556dc4119fdaa031b594241eacf51e2139e8490.tar.xz
mem: Add a method for setting the time on a packet.
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/request.hh6
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; }