diff options
author | Andrew Bardsley <Andrew.Bardsley@arm.com> | 2014-05-09 18:58:47 -0400 |
---|---|---|
committer | Andrew Bardsley <Andrew.Bardsley@arm.com> | 2014-05-09 18:58:47 -0400 |
commit | eab00f4966142392322b38c9efaf9d3cbf554b07 (patch) | |
tree | f5e16ebd8fec6bba878c0bd424bde83947fac34e /src | |
parent | af39ab297f7c666e77d29e836a4ff4c2a6d672a9 (diff) | |
download | gem5-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')
-rw-r--r-- | src/sim/insttracer.hh | 2 |
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; } |