summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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; }