gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
gem5::branch_prediction::StatisticalCorrector::SCThreadHistory Struct Reference

#include <statistical_corrector.hh>

Inheritance diagram for gem5::branch_prediction::StatisticalCorrector::SCThreadHistory:
gem5::branch_prediction::MPP_StatisticalCorrector::MPP_SCThreadHistory gem5::branch_prediction::TAGE_SC_L_64KB_StatisticalCorrector::SC_64KB_ThreadHistory gem5::branch_prediction::TAGE_SC_L_8KB_StatisticalCorrector::SC_8KB_ThreadHistory

Public Member Functions

 SCThreadHistory (unsigned instShiftAmt)
 
void setNumOrdinalHistories (unsigned num)
 
void initLocalHistory (int ordinal, int numHistories, int shift)
 
int64_t getLocalHistory (int ordinal, Addr pc)
 
void setLocalHistory (int ordinal, Addr pc, int64_t value)
 
void updateLocalHistory (int ordinal, Addr branch_pc, bool taken, Addr extraXor=0)
 

Public Attributes

const unsigned instShiftAmt
 
int64_t bwHist
 
int64_t imliCount
 
int64_t pHist
 

Private Member Functions

unsigned getEntry (Addr pc, unsigned idx)
 

Private Attributes

std::vector< int64_t > * localHistories
 
std::vector< int > shifts
 
unsigned numOrdinalHistories
 

Detailed Description

Definition at line 76 of file statistical_corrector.hh.

Constructor & Destructor Documentation

◆ SCThreadHistory()

Member Function Documentation

◆ getEntry()

unsigned gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::getEntry ( Addr pc,
unsigned idx )
inlineprivate

◆ getLocalHistory()

int64_t gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::getLocalHistory ( int ordinal,
Addr pc )
inline

◆ initLocalHistory()

void gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::initLocalHistory ( int ordinal,
int numHistories,
int shift )
inline

◆ setLocalHistory()

void gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::setLocalHistory ( int ordinal,
Addr pc,
int64_t value )
inline

◆ setNumOrdinalHistories()

void gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::setNumOrdinalHistories ( unsigned num)
inline

◆ updateLocalHistory()

void gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::updateLocalHistory ( int ordinal,
Addr branch_pc,
bool taken,
Addr extraXor = 0 )
inline

Definition at line 122 of file statistical_corrector.hh.

References getEntry(), localHistories, and numOrdinalHistories.

Member Data Documentation

◆ bwHist

int64_t gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::bwHist

Definition at line 87 of file statistical_corrector.hh.

Referenced by SCThreadHistory().

◆ imliCount

int64_t gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::imliCount

Definition at line 88 of file statistical_corrector.hh.

Referenced by SCThreadHistory().

◆ instShiftAmt

◆ localHistories

std::vector<int64_t>* gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::localHistories
private

◆ numOrdinalHistories

unsigned gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::numOrdinalHistories
private

◆ pHist

int64_t gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::pHist

Definition at line 89 of file statistical_corrector.hh.

Referenced by SCThreadHistory().

◆ shifts

std::vector<int> gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::shifts
private

Definition at line 140 of file statistical_corrector.hh.

Referenced by getEntry(), initLocalHistory(), and setNumOrdinalHistories().


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

Generated on Mon May 26 2025 09:19:30 for gem5 by doxygen 1.13.2