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

Register Entry. More...

#include <tarmac_record.hh>

Inheritance diagram for Trace::TarmacTracerRecord::TraceRegEntry:
Printable 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 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...
 

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)
 

Detailed Description

Register Entry.

Definition at line 116 of file tarmac_record.hh.

Constructor & Destructor Documentation

◆ TraceRegEntry()

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

Definition at line 151 of file tarmac_record.cc.

Member Function Documentation

◆ print()

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

Implements Printable.

Reimplemented in Trace::TarmacTracerRecordV8::TraceRegEntryV8.

Definition at line 449 of file tarmac_record.cc.

References ccprintf(), curTick(), and Sinic::regValid().

◆ update()

void 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 162 of file tarmac_record.cc.

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

◆ updateCC()

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

◆ updateFloat()

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

◆ updateInt()

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

◆ updateMisc()

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

◆ updatePred()

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

Reimplemented in Trace::TarmacTracerRecordV8::TraceRegEntryV8.

Definition at line 154 of file tarmac_record.hh.

◆ updateVec()

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

Reimplemented in Trace::TarmacTracerRecordV8::TraceRegEntryV8.

Definition at line 151 of file tarmac_record.hh.

Member Data Documentation

◆ regClass

RegClass Trace::TarmacTracerRecord::TraceRegEntry::regClass

Register class.

Definition at line 160 of file tarmac_record.hh.

◆ regName

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

Register name to be printed.

Definition at line 164 of file tarmac_record.hh.

◆ regRel

RegIndex Trace::TarmacTracerRecord::TraceRegEntry::regRel

Register arch number.

Definition at line 162 of file tarmac_record.hh.

◆ regValid

bool Trace::TarmacTracerRecord::TraceRegEntry::regValid

True if register entry is valid.

Definition at line 154 of file tarmac_record.hh.


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

Generated on Wed Sep 30 2020 14:03:14 for gem5 by doxygen 1.8.17