summaryrefslogtreecommitdiff
path: root/src/mem/request.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-06-14 19:39:01 -0700
committerNathan Binkert <nate@binkert.org>2008-06-14 19:39:01 -0700
commitfe325c7f4341b25cae65cbe529caa0a46140501a (patch)
tree9fdb28401a8a6658a1cf8074ee9551adc29e5bcf /src/mem/request.hh
parented84388b85d86a192f608bcb3e64d9894f767fad (diff)
downloadgem5-fe325c7f4341b25cae65cbe529caa0a46140501a.tar.xz
MemReq: Add option to reset the time on a request.
Diffstat (limited to 'src/mem/request.hh')
-rw-r--r--src/mem/request.hh1
1 files changed, 1 insertions, 0 deletions
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; }