gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::ArmISA::HTMCheckpoint Class Reference

#include <htm.hh>

Inheritance diagram for gem5::ArmISA::HTMCheckpoint:
gem5::BaseHTMCheckpoint

Public Member Functions

 HTMCheckpoint ()
 
void reset () override
 Resets the checkpoint once a transaction has completed.
 
void save (ThreadContext *tc) override
 Every ISA implementing HTM support should override the save method.
 
void restore (ThreadContext *tc, HtmFailureFaultCause cause) override
 Every ISA implementing HTM support should override the restore method.
 
void destinationRegister (RegIndex dest)
 
void cancelReason (uint16_t reason)
 
- Public Member Functions inherited from gem5::BaseHTMCheckpoint
 BaseHTMCheckpoint ()
 
virtual ~BaseHTMCheckpoint ()
 
bool valid () const
 
uint64_t newHtmUid ()
 Generates a new HTM identifier (used when starting a new transaction)
 
uint64_t getHtmUid () const
 Returns the current HTM identifier.
 
void setHtmUid (uint64_t new_htm_uid)
 Sets the current HTM identifier.
 

Static Public Attributes

static const int MAX_HTM_DEPTH = 255
 

Private Attributes

uint8_t rt
 
Addr nPc
 
std::array< RegVal, int_reg::NumArchRegsx
 
std::array< VecRegContainer, NumVecRegsz
 
std::array< VecPredRegContainer, NumVecRegsp
 
Addr sp
 
uint16_t tcreason
 
uint32_t fpcr
 
uint32_t fpsr
 
uint32_t iccPmrEl1
 
uint8_t nzcv
 
uint8_t daif
 
PCState pcstateckpt
 

Additional Inherited Members

- Protected Attributes inherited from gem5::BaseHTMCheckpoint
bool _valid
 

Detailed Description

Definition at line 58 of file htm.hh.

Constructor & Destructor Documentation

◆ HTMCheckpoint()

gem5::ArmISA::HTMCheckpoint::HTMCheckpoint ( )
inline

Definition at line 61 of file htm.hh.

Member Function Documentation

◆ cancelReason()

void gem5::ArmISA::HTMCheckpoint::cancelReason ( uint16_t reason)
inline

Definition at line 72 of file htm.hh.

References tcreason.

◆ destinationRegister()

void gem5::ArmISA::HTMCheckpoint::destinationRegister ( RegIndex dest)
inline

Definition at line 71 of file htm.hh.

References rt.

◆ reset()

void gem5::ArmISA::HTMCheckpoint::reset ( )
overridevirtual

Resets the checkpoint once a transaction has completed.

The method is bringing up the checkpoint to a known reset state so that it can be reused. ISA specific checkpoints inheriting from this class should override this method so that they can reset their own ISA specific state.

Reimplemented from gem5::BaseHTMCheckpoint.

Definition at line 48 of file htm.cc.

References daif, fpcr, fpsr, gem5::ArmISA::i, iccPmrEl1, nPc, gem5::ArmISA::NumVecPredRegs, gem5::ArmISA::NumVecRegs, nzcv, p, pcstateckpt, gem5::BaseHTMCheckpoint::reset(), rt, sp, tcreason, x, and z.

◆ restore()

void gem5::ArmISA::HTMCheckpoint::restore ( ThreadContext * tc,
HtmFailureFaultCause cause )
overridevirtual

◆ save()

void gem5::ArmISA::HTMCheckpoint::save ( ThreadContext * tc)
overridevirtual

Member Data Documentation

◆ daif

uint8_t gem5::ArmISA::HTMCheckpoint::daif
private

Definition at line 86 of file htm.hh.

Referenced by reset().

◆ fpcr

uint32_t gem5::ArmISA::HTMCheckpoint::fpcr
private

Definition at line 82 of file htm.hh.

Referenced by reset().

◆ fpsr

uint32_t gem5::ArmISA::HTMCheckpoint::fpsr
private

Definition at line 83 of file htm.hh.

Referenced by reset().

◆ iccPmrEl1

uint32_t gem5::ArmISA::HTMCheckpoint::iccPmrEl1
private

Definition at line 84 of file htm.hh.

Referenced by reset().

◆ MAX_HTM_DEPTH

const int gem5::ArmISA::HTMCheckpoint::MAX_HTM_DEPTH = 255
static

Definition at line 65 of file htm.hh.

◆ nPc

Addr gem5::ArmISA::HTMCheckpoint::nPc
private

Definition at line 76 of file htm.hh.

Referenced by reset().

◆ nzcv

uint8_t gem5::ArmISA::HTMCheckpoint::nzcv
private

Definition at line 85 of file htm.hh.

Referenced by reset().

◆ p

std::array<VecPredRegContainer, NumVecRegs> gem5::ArmISA::HTMCheckpoint::p
private

Definition at line 79 of file htm.hh.

Referenced by reset().

◆ pcstateckpt

PCState gem5::ArmISA::HTMCheckpoint::pcstateckpt
private

Definition at line 87 of file htm.hh.

Referenced by reset().

◆ rt

uint8_t gem5::ArmISA::HTMCheckpoint::rt
private

Definition at line 75 of file htm.hh.

Referenced by destinationRegister(), and reset().

◆ sp

Addr gem5::ArmISA::HTMCheckpoint::sp
private

Definition at line 80 of file htm.hh.

Referenced by reset().

◆ tcreason

uint16_t gem5::ArmISA::HTMCheckpoint::tcreason
private

Definition at line 81 of file htm.hh.

Referenced by cancelReason(), and reset().

◆ x

std::array<RegVal, int_reg::NumArchRegs> gem5::ArmISA::HTMCheckpoint::x
private

Definition at line 77 of file htm.hh.

Referenced by reset().

◆ z

std::array<VecRegContainer, NumVecRegs> gem5::ArmISA::HTMCheckpoint::z
private

Definition at line 78 of file htm.hh.

Referenced by reset().


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

Generated on Tue Jun 18 2024 16:24:16 for gem5 by doxygen 1.11.0