From: Andrew Bardsley Date: Fri, 9 May 2014 22:58:47 +0000 (-0400) Subject: cpu: Allow setWhen on trace objects X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eab00f4966142392322b38c9efaf9d3cbf554b07;p=gem5.git 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 --- 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; }