gem5  v22.1.0.0
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 (const PCStateBase &pc)
- Public Member Functions inherited from gem5::Printable
 Printable ()
virtual ~Printable ()

Public Attributes

bool regValid
 True if register entry is valid. More...
RegId regId
 Register ID. 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)
 Register update functions. More...
virtual void updateCC (const TarmacContext &tarmCtx)
virtual void updateFloat (const TarmacContext &tarmCtx)
virtual void updateInt (const TarmacContext &tarmCtx)
virtual void updateVec (const TarmacContext &tarmCtx)
virtual void updatePred (const TarmacContext &tarmCtx)

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

Member Function Documentation

◆ print()

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

◆ 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 166 of file

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

◆ updateCC()

void gem5::trace::TarmacTracerRecord::TraceRegEntry::updateCC ( const TarmacContext tarmCtx)

◆ updateFloat()

void gem5::trace::TarmacTracerRecord::TraceRegEntry::updateFloat ( const TarmacContext tarmCtx)

Definition at line 231 of file

References panic, gem5::sinic::regValid(), and sc_dt::to_string().

◆ updateInt()

void gem5::trace::TarmacTracerRecord::TraceRegEntry::updateInt ( const TarmacContext tarmCtx)

◆ updateMisc()

void gem5::trace::TarmacTracerRecord::TraceRegEntry::updateMisc ( const TarmacContext tarmCtx)

◆ updatePred()

virtual void gem5::trace::TarmacTracerRecord::TraceRegEntry::updatePred ( const TarmacContext tarmCtx)

Reimplemented in gem5::trace::TarmacTracerRecordV8::TraceRegEntryV8.

Definition at line 148 of file tarmac_record.hh.

◆ updateVec()

virtual void gem5::trace::TarmacTracerRecord::TraceRegEntry::updateVec ( const TarmacContext tarmCtx)

Reimplemented in gem5::trace::TarmacTracerRecordV8::TraceRegEntryV8.

Definition at line 147 of file tarmac_record.hh.

Member Data Documentation

◆ regId

RegId gem5::trace::TarmacTracerRecord::TraceRegEntry::regId

Register ID.

Definition at line 154 of file tarmac_record.hh.

◆ regName

std::string gem5::trace::TarmacTracerRecord::TraceRegEntry::regName

Register name to be printed.

Definition at line 156 of file tarmac_record.hh.

◆ regValid

bool gem5::trace::TarmacTracerRecord::TraceRegEntry::regValid

True if register entry is valid.

Definition at line 152 of file tarmac_record.hh.

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

Generated on Wed Dec 21 2022 10:24:28 for gem5 by doxygen 1.9.1