cpu: Allow setWhen on trace objects
authorAndrew Bardsley <Andrew.Bardsley@arm.com>
Fri, 9 May 2014 22:58:47 +0000 (18:58 -0400)
committerAndrew 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

index 2afea07ea685b127c070a48b41c4100e425b4dc1..5967121200dc5b33a644d8a71590415f28d428ff 100644 (file)
@@ -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; }