gem5  v21.1.0.2
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
gem5::Trace::TarmacTracerRecord::TraceRegEntry Struct Reference

Register Entry. More...

#include <tarmac_record.hh>

Inheritance diagram for gem5::Trace::TarmacTracerRecord::TraceRegEntry:
gem5::Trace::TarmacBaseRecord::RegEntry gem5::Printable gem5::Trace::TarmacTracerRecordV8::TraceRegEntryV8

Public Member Functions

 TraceRegEntry (const TarmacContext &tarmCtx, const RegId &reg)
 
void update (const TarmacContext &tarmCtx)
 This updates the register entry using the update table. More...
 
virtual void print (std::ostream &outs, int verbosity=0, const std::string &prefix="") const override
 
- Public Member Functions inherited from gem5::Trace::TarmacBaseRecord::RegEntry
 RegEntry ()=default
 
 RegEntry (ArmISA::PCState pc)
 
- Public Member Functions inherited from gem5::Printable
 Printable ()
 
virtual ~Printable ()
 

Public Attributes

bool regValid
 True if register entry is valid. More...
 
RegClass regClass
 Register class. More...
 
RegIndex regRel
 Register arch number. More...
 
std::string regName
 Register name to be printed. More...
 
- Public Attributes inherited from gem5::Trace::TarmacBaseRecord::RegEntry
RegType type
 
RegIndex index
 
ISetState isetstate
 
std::vector< uint64_t > values
 

Protected Member Functions

virtual void updateMisc (const TarmacContext &tarmCtx, RegIndex regRelIdx)
 Register update functions. More...
 
virtual void updateCC (const TarmacContext &tarmCtx, RegIndex regRelIdx)
 
virtual void updateFloat (const TarmacContext &tarmCtx, RegIndex regRelIdx)
 
virtual void updateInt (const TarmacContext &tarmCtx, RegIndex regRelIdx)
 
virtual void updateVec (const TarmacContext &tarmCtx, RegIndex regRelIdx)
 
virtual void updatePred (const TarmacContext &tarmCtx, RegIndex regRelIdx)
 

Additional Inherited Members

- Public Types inherited from gem5::Trace::TarmacBaseRecord::RegEntry
enum  RegElement { Lo = 0, Hi = 1, Max = 32 }
 

Detailed Description

Register Entry.

Definition at line 121 of file tarmac_record.hh.

Constructor & Destructor Documentation

◆ TraceRegEntry()

gem5::Trace::TarmacTracerRecord::TraceRegEntry::TraceRegEntry ( const TarmacContext tarmCtx,
const RegId reg 
)

Definition at line 156 of file tarmac_record.cc.

Member Function Documentation

◆ print()

void gem5::Trace::TarmacTracerRecord::TraceRegEntry::print ( std::ostream &  outs,
int  verbosity = 0,
const std::string &  prefix = "" 
) const
overridevirtual

◆ update()

void gem5::Trace::TarmacTracerRecord::TraceRegEntry::update ( const TarmacContext tarmCtx)

This updates the register entry using the update table.

It is a required step after the register entry generation. If unupdated, the entry will be marked as invalid. The entry update cannot be done automatically at TraceRegEntry construction: the entries are extended by consequent Tarmac Tracer versions (like V8), and virtual functions should be avoided during construction.

Definition at line 167 of file tarmac_record.cc.

References gem5::CCRegClass, gem5::FloatRegClass, gem5::IntRegClass, gem5::MiscRegClass, gem5::VecPredRegClass, and gem5::VecRegClass.

◆ updateCC()

void gem5::Trace::TarmacTracerRecord::TraceRegEntry::updateCC ( const TarmacContext tarmCtx,
RegIndex  regRelIdx 
)
protectedvirtual

◆ updateFloat()

void gem5::Trace::TarmacTracerRecord::TraceRegEntry::updateFloat ( const TarmacContext tarmCtx,
RegIndex  regRelIdx 
)
protectedvirtual

◆ updateInt()

void gem5::Trace::TarmacTracerRecord::TraceRegEntry::updateInt ( const TarmacContext tarmCtx,
RegIndex  regRelIdx 
)
protectedvirtual

◆ updateMisc()

void gem5::Trace::TarmacTracerRecord::TraceRegEntry::updateMisc ( const TarmacContext tarmCtx,
RegIndex  regRelIdx 
)
protectedvirtual

◆ updatePred()

virtual void gem5::Trace::TarmacTracerRecord::TraceRegEntry::updatePred ( const TarmacContext tarmCtx,
RegIndex  regRelIdx 
)
inlineprotectedvirtual

Reimplemented in gem5::Trace::TarmacTracerRecordV8::TraceRegEntryV8.

Definition at line 159 of file tarmac_record.hh.

◆ updateVec()

virtual void gem5::Trace::TarmacTracerRecord::TraceRegEntry::updateVec ( const TarmacContext tarmCtx,
RegIndex  regRelIdx 
)
inlineprotectedvirtual

Reimplemented in gem5::Trace::TarmacTracerRecordV8::TraceRegEntryV8.

Definition at line 156 of file tarmac_record.hh.

Member Data Documentation

◆ regClass

RegClass gem5::Trace::TarmacTracerRecord::TraceRegEntry::regClass

Register class.

Definition at line 165 of file tarmac_record.hh.

◆ regName

std::string gem5::Trace::TarmacTracerRecord::TraceRegEntry::regName

Register name to be printed.

Definition at line 169 of file tarmac_record.hh.

◆ regRel

RegIndex gem5::Trace::TarmacTracerRecord::TraceRegEntry::regRel

Register arch number.

Definition at line 167 of file tarmac_record.hh.

◆ regValid

bool gem5::Trace::TarmacTracerRecord::TraceRegEntry::regValid

True if register entry is valid.

Definition at line 159 of file tarmac_record.hh.


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

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