summaryrefslogtreecommitdiff
path: root/src/sim/insttracer.hh
diff options
context:
space:
mode:
authorAndrew Bardsley <Andrew.Bardsley@arm.com>2014-05-09 18:58:47 -0400
committerAndrew Bardsley <Andrew.Bardsley@arm.com>2014-05-09 18:58:47 -0400
commiteab00f4966142392322b38c9efaf9d3cbf554b07 (patch)
treef5e16ebd8fec6bba878c0bd424bde83947fac34e /src/sim/insttracer.hh
parentaf39ab297f7c666e77d29e836a4ff4c2a6d672a9 (diff)
downloadgem5-eab00f4966142392322b38c9efaf9d3cbf554b07.tar.xz
cpu: Allow setWhen on trace objects
Allow setting of 'when' in trace records. This allows later times than the arbitrary record creation point to be used as inst. times
Diffstat (limited to 'src/sim/insttracer.hh')
-rw-r--r--src/sim/insttracer.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/insttracer.hh b/src/sim/insttracer.hh
index 2afea07ea..596712120 100644
--- 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; }