diff options
author | Nathan Binkert <nate@binkert.org> | 2008-06-14 19:39:01 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-06-14 19:39:01 -0700 |
commit | fe325c7f4341b25cae65cbe529caa0a46140501a (patch) | |
tree | 9fdb28401a8a6658a1cf8074ee9551adc29e5bcf /src/mem | |
parent | ed84388b85d86a192f608bcb3e64d9894f767fad (diff) | |
download | gem5-fe325c7f4341b25cae65cbe529caa0a46140501a.tar.xz |
MemReq: Add option to reset the time on a request.
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/request.hh | 1 |
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; } |