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
This commit is contained in:
Andrew Bardsley 2014-05-09 18:58:47 -04:00
parent af39ab297f
commit eab00f4966

View 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; }