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:
parent
af39ab297f
commit
eab00f4966
1 changed files with 2 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue