gem5  v21.1.0.2
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
gem5::Trace::TarmacBaseRecord Class Referenceabstract

#include <tarmac_base.hh>

Inheritance diagram for gem5::Trace::TarmacBaseRecord:
gem5::Trace::InstRecord gem5::Trace::TarmacParserRecord gem5::Trace::TarmacTracerRecord gem5::Trace::TarmacTracerRecordV8

Classes

struct  InstEntry
 TARMAC instruction trace record. More...
 
struct  MemEntry
 TARMAC memory access trace record (stores only). More...
 
struct  RegEntry
 TARMAC register trace record. More...
 

Public Types

enum  TarmacRecordType { TARMAC_INST, TARMAC_REG, TARMAC_MEM, TARMAC_UNSUPPORTED }
 TARMAC trace record type. More...
 
enum  ISetState { ISET_ARM, ISET_THUMB, ISET_A64, ISET_UNSUPPORTED }
 ARM instruction set state. More...
 
enum  RegType {
  REG_R, REG_X, REG_S, REG_D,
  REG_P, REG_Q, REG_Z, REG_MISC
}
 ARM register type. More...
 

Public Member Functions

 TarmacBaseRecord (Tick _when, ThreadContext *_thread, const StaticInstPtr _staticInst, ArmISA::PCState _pc, const StaticInstPtr _macroStaticInst=NULL)
 
virtual void dump ()=0
 
- Public Member Functions inherited from gem5::Trace::InstRecord
 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)
 
template<typename T , size_t N>
void setData (std::array< T, N > 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 setData (TheISA::VecRegContainer &d)
 
void setData (TheISA::VecPredRegContainer &d)
 
void setFetchSeq (InstSeqNum seq)
 
void setCPSeq (InstSeqNum seq)
 
void setPredicate (bool val)
 
void setFaulting (bool val)
 
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
 
bool getFaulting () const
 

Static Public Member Functions

static ISetState pcToISetState (ArmISA::PCState pc)
 Returns the Instruction Set State according to the current PCState. More...
 

Additional Inherited Members

- Protected Types inherited from gem5::Trace::InstRecord
enum  DataStatus {
  DataInvalid = 0, DataInt8 = 1, DataInt16 = 2, DataInt32 = 4,
  DataInt64 = 8, DataDouble = 3, DataVec = 5, DataVecPred = 6
}
 
- Protected Attributes inherited from gem5::Trace::InstRecord
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
 
   TheISA::VecRegContainer *   as_vec
 
   TheISA::VecPredRegContainer *   as_pred
 
data
 
InstSeqNum fetch_seq
 
InstSeqNum cp_seq
 
enum gem5::Trace::InstRecord::DataStatus data_status
 
bool mem_valid
 
bool fetch_seq_valid
 
bool cp_seq_valid
 
bool predicate
 is the predicate for execution this inst true or false (not execed)? More...
 
bool faulting
 Did the execution of this instruction fault? (requires ExecFaulting to be enabled) More...
 

Detailed Description

Definition at line 64 of file tarmac_base.hh.

Member Enumeration Documentation

◆ ISetState

ARM instruction set state.

Enumerator
ISET_ARM 
ISET_THUMB 
ISET_A64 
ISET_UNSUPPORTED 

Definition at line 77 of file tarmac_base.hh.

◆ RegType

ARM register type.

Enumerator
REG_R 
REG_X 
REG_S 
REG_D 
REG_P 
REG_Q 
REG_Z 
REG_MISC 

Definition at line 81 of file tarmac_base.hh.

◆ TarmacRecordType

TARMAC trace record type.

Enumerator
TARMAC_INST 
TARMAC_REG 
TARMAC_MEM 
TARMAC_UNSUPPORTED 

Definition at line 68 of file tarmac_base.hh.

Constructor & Destructor Documentation

◆ TarmacBaseRecord()

gem5::Trace::TarmacBaseRecord::TarmacBaseRecord ( Tick  _when,
ThreadContext _thread,
const StaticInstPtr  _staticInst,
ArmISA::PCState  _pc,
const StaticInstPtr  _macroStaticInst = NULL 
)

Definition at line 55 of file tarmac_base.cc.

Member Function Documentation

◆ dump()

virtual void gem5::Trace::TarmacBaseRecord::dump ( )
pure virtual

◆ pcToISetState()

TarmacBaseRecord::ISetState gem5::Trace::TarmacBaseRecord::pcToISetState ( ArmISA::PCState  pc)
static

Returns the Instruction Set State according to the current PCState.

Parameters
pcprogram counter (PCState) variable
Returns
Instruction Set State for the given PCState

Definition at line 103 of file tarmac_base.cc.

References ISET_A64, ISET_ARM, ISET_THUMB, ISET_UNSUPPORTED, and gem5::Trace::InstRecord::pc.

Referenced by gem5::Trace::TarmacParserRecord::dump().


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

Generated on Tue Sep 21 2021 12:32:32 for gem5 by doxygen 1.8.17