projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af39ab2
)
cpu: Allow setWhen on trace objects
author
Andrew Bardsley
<Andrew.Bardsley@arm.com>
Fri, 9 May 2014 22:58:47 +0000
(18:58 -0400)
committer
Andrew Bardsley
<Andrew.Bardsley@arm.com>
Fri, 9 May 2014 22:58:47 +0000
(18:58 -0400)
Allow setting of 'when' in trace records. This allows later times
than the arbitrary record creation point to be used as inst. times
src/sim/insttracer.hh
patch
|
blob
|
history
diff --git
a/src/sim/insttracer.hh
b/src/sim/insttracer.hh
index 2afea07ea685b127c070a48b41c4100e425b4dc1..5967121200dc5b33a644d8a71590415f28d428ff 100644
(file)
--- a/
src/sim/insttracer.hh
+++ b/
src/sim/insttracer.hh
@@
-105,6
+105,8
@@
class InstRecord
virtual ~InstRecord() { }
+ void setWhen(Tick new_when) { when = new_when; }
+
void setAddr(Addr a) { addr = a; addr_valid = true; }
void setData(Twin64_t d) { data.as_int = d.a; data_status = DataInt64; }