projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e063210
)
mem: Add a method for setting the time on a packet.
author
Nathan Binkert
<nate@binkert.org>
Thu, 9 Oct 2008 11:58:24 +0000
(
04:58
-0700)
committer
Nathan Binkert
<nate@binkert.org>
Thu, 9 Oct 2008 11:58:24 +0000
(
04:58
-0700)
src/mem/request.hh
patch
|
blob
|
history
diff --git
a/src/mem/request.hh
b/src/mem/request.hh
index ab8f9d596823b9cd24eec9d6aab7188b73947cb6..613655ea44642eb374bd0db55438e515ab9a4ce6 100644
(file)
--- 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; }