gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Types | Protected Attributes | List of all members
Trace::InstRecord Class Referenceabstract

#include <insttracer.hh>

Inheritance diagram for Trace::InstRecord:
Trace::ExeTracerRecord Trace::InstPBTraceRecord Trace::IntelTraceRecord Trace::NativeTraceRecord

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
 
ThreadContextgetThread () 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
 
ThreadContextthread
 
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...
 

Detailed Description

Definition at line 57 of file insttracer.hh.

Constructor & Destructor Documentation

Trace::InstRecord::InstRecord ( Tick  _when,
ThreadContext _thread,
const StaticInstPtr  _staticInst,
TheISA::PCState  _pc,
const StaticInstPtr  _macroStaticInst = NULL 
)
inline

Definition at line 144 of file insttracer.hh.

virtual Trace::InstRecord::~InstRecord ( )
inlinevirtual

Definition at line 154 of file insttracer.hh.

Member Function Documentation

virtual void Trace::InstRecord::dump ( )
pure virtual
Addr Trace::InstRecord::getAddr ( ) const
inline

Definition at line 193 of file insttracer.hh.

References addr.

Referenced by Trace::InstPBTraceRecord::dump().

InstSeqNum Trace::InstRecord::getCpSeq ( ) const
inline

Definition at line 205 of file insttracer.hh.

References cp_seq.

bool Trace::InstRecord::getCpSeqValid ( ) const
inline

Definition at line 206 of file insttracer.hh.

References cp_seq_valid.

int Trace::InstRecord::getDataStatus ( ) const
inline

Definition at line 200 of file insttracer.hh.

References data_status.

InstSeqNum Trace::InstRecord::getFetchSeq ( ) const
inline

Definition at line 202 of file insttracer.hh.

References fetch_seq.

bool Trace::InstRecord::getFetchSeqValid ( ) const
inline

Definition at line 203 of file insttracer.hh.

References fetch_seq_valid.

unsigned Trace::InstRecord::getFlags ( ) const
inline

Definition at line 195 of file insttracer.hh.

References flags.

Referenced by Trace::InstPBTraceRecord::dump().

double Trace::InstRecord::getFloatData ( ) const
inline

Definition at line 199 of file insttracer.hh.

References data.

uint64_t Trace::InstRecord::getIntData ( ) const
inline

Definition at line 198 of file insttracer.hh.

References data.

StaticInstPtr Trace::InstRecord::getMacroStaticInst ( ) const
inline

Definition at line 191 of file insttracer.hh.

References macroStaticInst.

Referenced by Trace::ArmNativeTrace::check().

bool Trace::InstRecord::getMemValid ( ) const
inline

Definition at line 196 of file insttracer.hh.

References mem_valid.

Referenced by Trace::InstPBTraceRecord::dump().

TheISA::PCState Trace::InstRecord::getPCState ( ) const
inline

Definition at line 190 of file insttracer.hh.

References pc.

Addr Trace::InstRecord::getSize ( ) const
inline

Definition at line 194 of file insttracer.hh.

References size.

Referenced by Trace::InstPBTraceRecord::dump().

StaticInstPtr Trace::InstRecord::getStaticInst ( ) const
inline

Definition at line 189 of file insttracer.hh.

References staticInst.

Referenced by Trace::X86NativeTrace::check(), and Trace::ArmNativeTrace::check().

ThreadContext* Trace::InstRecord::getThread ( ) const
inline
Tick Trace::InstRecord::getWhen ( ) const
inline

Definition at line 187 of file insttracer.hh.

References when.

void Trace::InstRecord::setCPSeq ( InstSeqNum  seq)
inline

Definition at line 179 of file insttracer.hh.

References cp_seq, and cp_seq_valid.

void Trace::InstRecord::setData ( Twin64_t  d)
inline
void Trace::InstRecord::setData ( Twin32_t  d)
inline

Definition at line 163 of file insttracer.hh.

References m5_twin32_t::a, data, data_status, and DataInt32.

void Trace::InstRecord::setData ( uint64_t  d)
inline

Definition at line 164 of file insttracer.hh.

References ArmISA::d, data, data_status, and DataInt64.

void Trace::InstRecord::setData ( uint32_t  d)
inline

Definition at line 165 of file insttracer.hh.

References ArmISA::d, data, data_status, and DataInt32.

void Trace::InstRecord::setData ( uint16_t  d)
inline

Definition at line 166 of file insttracer.hh.

References ArmISA::d, data, data_status, and DataInt16.

void Trace::InstRecord::setData ( uint8_t  d)
inline

Definition at line 167 of file insttracer.hh.

References ArmISA::d, data, data_status, and DataInt8.

void Trace::InstRecord::setData ( int64_t  d)
inline

Definition at line 169 of file insttracer.hh.

References setData().

Referenced by setData().

void Trace::InstRecord::setData ( int32_t  d)
inline

Definition at line 170 of file insttracer.hh.

References setData().

Referenced by setData().

void Trace::InstRecord::setData ( int16_t  d)
inline

Definition at line 171 of file insttracer.hh.

References setData().

Referenced by setData().

void Trace::InstRecord::setData ( int8_t  d)
inline

Definition at line 172 of file insttracer.hh.

References setData().

Referenced by setData().

void Trace::InstRecord::setData ( double  d)
inline

Definition at line 174 of file insttracer.hh.

References ArmISA::d, data, data_status, and DataDouble.

void Trace::InstRecord::setFetchSeq ( InstSeqNum  seq)
inline

Definition at line 176 of file insttracer.hh.

References fetch_seq, and fetch_seq_valid.

void Trace::InstRecord::setMem ( Addr  a,
Addr  s,
unsigned  f 
)
inline
void Trace::InstRecord::setPredicate ( bool  val)
inline

Definition at line 182 of file insttracer.hh.

References predicate, and X86ISA::val.

Referenced by SimpleExecContext::setPredicate(), and BaseDynInst< Impl >::setPredicate().

void Trace::InstRecord::setWhen ( Tick  new_when)
inline

Definition at line 156 of file insttracer.hh.

References when.

Member Data Documentation

Addr Trace::InstRecord::addr
protected

The address that was accessed.

Definition at line 82 of file insttracer.hh.

Referenced by getAddr(), and setMem().

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.

InstSeqNum Trace::InstRecord::cp_seq
protected

Definition at line 111 of file insttracer.hh.

Referenced by getCpSeq(), and setCPSeq().

union { ... } Trace::InstRecord::data

Referenced by getFloatData(), getIntData(), and setData().

InstSeqNum Trace::InstRecord::fetch_seq
protected

Definition at line 105 of file insttracer.hh.

Referenced by getFetchSeq(), and setFetchSeq().

unsigned Trace::InstRecord::flags
protected

The flags that were assigned to the request.

Definition at line 84 of file insttracer.hh.

Referenced by getFlags(), and setMem().

StaticInstPtr Trace::InstRecord::macroStaticInst
protected

Definition at line 69 of file insttracer.hh.

Referenced by Trace::InstPBTraceRecord::dump(), and getMacroStaticInst().

bool Trace::InstRecord::mem_valid
protected

Are the memory fields in the record valid?

Definition at line 128 of file insttracer.hh.

Referenced by getMemValid(), and setMem().

TheISA::PCState Trace::InstRecord::pc
protected

Definition at line 68 of file insttracer.hh.

Referenced by Trace::InstPBTraceRecord::dump(), and getPCState().

bool Trace::InstRecord::predicate
protected

is the predicate for execution this inst true or false (not execed)?

Definition at line 141 of file insttracer.hh.

Referenced by setPredicate().

Addr Trace::InstRecord::size
protected

The size of the memory request.

Definition at line 83 of file insttracer.hh.

Referenced by getSize(), and setMem().

StaticInstPtr Trace::InstRecord::staticInst
protected

Definition at line 67 of file insttracer.hh.

Referenced by Trace::InstPBTraceRecord::dump(), and getStaticInst().

ThreadContext* Trace::InstRecord::thread
protected

Definition at line 64 of file insttracer.hh.

Referenced by Trace::InstPBTraceRecord::dump(), and getThread().

Tick Trace::InstRecord::when
protected

Definition at line 60 of file insttracer.hh.

Referenced by getWhen(), and setWhen().


The documentation for this class was generated from the following file:

Generated on Fri Jun 9 2017 13:04:41 for gem5 by doxygen 1.8.6