gem5
|
#include <insttracer.hh>
Public Member Functions | |
InstRecord (Tick _when, ThreadContext *_thread, const StaticInstPtr _staticInst, TheISA::PCState _pc, const StaticInstPtr _macroStaticInst=NULL) | |
virtual | ~InstRecord () |
void | setWhen (Tick new_when) |
void | setMem (Addr a, Addr s, unsigned f) |
void | setData (Twin64_t d) |
void | setData (Twin32_t d) |
void | setData (uint64_t d) |
void | setData (uint32_t d) |
void | setData (uint16_t d) |
void | setData (uint8_t d) |
void | setData (int64_t d) |
void | setData (int32_t d) |
void | setData (int16_t d) |
void | setData (int8_t d) |
void | setData (double d) |
void | setFetchSeq (InstSeqNum seq) |
void | setCPSeq (InstSeqNum seq) |
void | setPredicate (bool val) |
virtual void | dump ()=0 |
Tick | getWhen () const |
ThreadContext * | getThread () const |
StaticInstPtr | getStaticInst () const |
TheISA::PCState | getPCState () const |
StaticInstPtr | getMacroStaticInst () const |
Addr | getAddr () const |
Addr | getSize () const |
unsigned | getFlags () const |
bool | getMemValid () const |
uint64_t | getIntData () const |
double | getFloatData () const |
int | getDataStatus () const |
InstSeqNum | getFetchSeq () const |
bool | getFetchSeqValid () const |
InstSeqNum | getCpSeq () const |
bool | getCpSeqValid () const |
Protected Types | |
enum | { DataInvalid = 0, DataInt8 = 1, DataInt16 = 2, DataInt32 = 4, DataInt64 = 8, DataDouble = 3 } |
What size of data was written? More... | |
Protected Attributes | |
Tick | when |
ThreadContext * | thread |
StaticInstPtr | staticInst |
TheISA::PCState | pc |
StaticInstPtr | macroStaticInst |
Addr | addr |
The address that was accessed. More... | |
Addr | size |
The size of the memory request. More... | |
unsigned | flags |
The flags that were assigned to the request. More... | |
union { | |
uint64_t as_int | |
double as_double | |
} | data |
InstSeqNum | fetch_seq |
InstSeqNum | cp_seq |
enum Trace::InstRecord:: { ... } | data_status |
What size of data was written? More... | |
bool | mem_valid |
Are the memory fields in the record valid? More... | |
bool | fetch_seq_valid |
Are the fetch sequence number fields valid? More... | |
bool | cp_seq_valid |
Are the commit sequence number fields valid? More... | |
bool | predicate |
is the predicate for execution this inst true or false (not execed)? More... | |
Definition at line 57 of file insttracer.hh.
|
inline |
Definition at line 144 of file insttracer.hh.
|
inlinevirtual |
Definition at line 154 of file insttracer.hh.
|
pure virtual |
Implemented in Trace::InstPBTraceRecord, Trace::NativeTraceRecord, Trace::ExeTracerRecord, and Trace::IntelTraceRecord.
Referenced by BaseSimpleCPU::postExecute(), and Checker< Impl >::verify().
|
inline |
Definition at line 193 of file insttracer.hh.
References addr.
Referenced by Trace::InstPBTraceRecord::dump().
|
inline |
Definition at line 205 of file insttracer.hh.
References cp_seq.
|
inline |
Definition at line 206 of file insttracer.hh.
References cp_seq_valid.
|
inline |
Definition at line 200 of file insttracer.hh.
References data_status.
|
inline |
Definition at line 202 of file insttracer.hh.
References fetch_seq.
|
inline |
Definition at line 203 of file insttracer.hh.
References fetch_seq_valid.
|
inline |
Definition at line 195 of file insttracer.hh.
References flags.
Referenced by Trace::InstPBTraceRecord::dump().
|
inline |
Definition at line 199 of file insttracer.hh.
References data.
|
inline |
Definition at line 198 of file insttracer.hh.
References data.
|
inline |
Definition at line 191 of file insttracer.hh.
References macroStaticInst.
Referenced by Trace::ArmNativeTrace::check().
|
inline |
Definition at line 196 of file insttracer.hh.
References mem_valid.
Referenced by Trace::InstPBTraceRecord::dump().
|
inline |
Definition at line 190 of file insttracer.hh.
References pc.
|
inline |
Definition at line 194 of file insttracer.hh.
References size.
Referenced by Trace::InstPBTraceRecord::dump().
|
inline |
Definition at line 189 of file insttracer.hh.
References staticInst.
Referenced by Trace::X86NativeTrace::check(), and Trace::ArmNativeTrace::check().
|
inline |
Definition at line 188 of file insttracer.hh.
References thread.
Referenced by Trace::SparcNativeTrace::check(), Trace::X86NativeTrace::check(), and Trace::ArmNativeTrace::check().
|
inline |
Definition at line 187 of file insttracer.hh.
References when.
|
inline |
Definition at line 179 of file insttracer.hh.
References cp_seq, and cp_seq_valid.
|
inline |
Definition at line 162 of file insttracer.hh.
References m5_twin64_t::a, data, data_status, and DataInt64.
Referenced by X86ISA::getMem(), getMem(), readMemAtomic(), X86ISA::readMemAtomic(), writeMemAtomic(), X86ISA::writeMemAtomic(), writeMemTiming(), and X86ISA::writeMemTiming().
|
inline |
Definition at line 163 of file insttracer.hh.
References m5_twin32_t::a, data, data_status, and DataInt32.
|
inline |
Definition at line 164 of file insttracer.hh.
References ArmISA::d, data, data_status, and DataInt64.
|
inline |
Definition at line 165 of file insttracer.hh.
References ArmISA::d, data, data_status, and DataInt32.
|
inline |
Definition at line 166 of file insttracer.hh.
References ArmISA::d, data, data_status, and DataInt16.
|
inline |
Definition at line 167 of file insttracer.hh.
References ArmISA::d, data, data_status, and DataInt8.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 174 of file insttracer.hh.
References ArmISA::d, data, data_status, and DataDouble.
|
inline |
Definition at line 176 of file insttracer.hh.
References fetch_seq, and fetch_seq_valid.
Definition at line 157 of file insttracer.hh.
References ArmISA::a, addr, ArmISA::f, flags, mem_valid, ArmISA::s, and size.
Referenced by TimingSimpleCPU::initiateMemRead(), AtomicSimpleCPU::readMem(), AtomicSimpleCPU::writeMem(), and TimingSimpleCPU::writeMem().
|
inline |
Definition at line 182 of file insttracer.hh.
References predicate, and X86ISA::val.
Referenced by SimpleExecContext::setPredicate(), and BaseDynInst< Impl >::setPredicate().
|
inline |
Definition at line 156 of file insttracer.hh.
References when.
|
protected |
The address that was accessed.
Definition at line 82 of file insttracer.hh.
double Trace::InstRecord::as_double |
Definition at line 98 of file insttracer.hh.
uint64_t Trace::InstRecord::as_int |
Definition at line 97 of file insttracer.hh.
|
protected |
Definition at line 111 of file insttracer.hh.
Referenced by getCpSeq(), and setCPSeq().
union { ... } Trace::InstRecord::data |
Referenced by getFloatData(), getIntData(), and setData().
|
protected |
Definition at line 105 of file insttracer.hh.
Referenced by getFetchSeq(), and setFetchSeq().
|
protected |
The flags that were assigned to the request.
Definition at line 84 of file insttracer.hh.
Referenced by getFlags(), and setMem().
|
protected |
Definition at line 69 of file insttracer.hh.
Referenced by Trace::InstPBTraceRecord::dump(), and getMacroStaticInst().
|
protected |
Are the memory fields in the record valid?
Definition at line 128 of file insttracer.hh.
Referenced by getMemValid(), and setMem().
|
protected |
Definition at line 68 of file insttracer.hh.
Referenced by Trace::InstPBTraceRecord::dump(), and getPCState().
|
protected |
is the predicate for execution this inst true or false (not execed)?
Definition at line 141 of file insttracer.hh.
Referenced by setPredicate().
|
protected |
The size of the memory request.
Definition at line 83 of file insttracer.hh.
|
protected |
Definition at line 67 of file insttracer.hh.
Referenced by Trace::InstPBTraceRecord::dump(), and getStaticInst().
|
protected |
Definition at line 64 of file insttracer.hh.
Referenced by Trace::InstPBTraceRecord::dump(), and getThread().
|
protected |
Definition at line 60 of file insttracer.hh.