gem5  v22.1.0.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
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 ()
 
void setNumOrdinalHistories (unsigned num)
 
void initLocalHistory (int ordinal, int numHistories, int shift)
 
int64_t getLocalHistory (int ordinal, Addr pc)
 
void updateLocalHistory (int ordinal, Addr branch_pc, bool taken, Addr extraXor=0)
 

Public Attributes

int64_t bwHist
 
int64_t imliCount
 

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 75 of file statistical_corrector.hh.

Constructor & Destructor Documentation

◆ SCThreadHistory()

gem5::branch_prediction::StatisticalCorrector::SCThreadHistory::SCThreadHistory ( )
inline

Definition at line 77 of file statistical_corrector.hh.

References bwHist, imliCount, and numOrdinalHistories.

Member Function Documentation

◆ getEntry()

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

Definition at line 129 of file statistical_corrector.hh.

References localHistories, gem5::MipsISA::pc, and shifts.

Referenced by getLocalHistory(), and updateLocalHistory().

◆ 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

◆ setNumOrdinalHistories()

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

Definition at line 85 of file statistical_corrector.hh.

References localHistories, numOrdinalHistories, and shifts.

◆ updateLocalHistory()

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

Member Data Documentation

◆ bwHist

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

◆ imliCount

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

◆ localHistories

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

◆ numOrdinalHistories

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

◆ shifts

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

Definition at line 126 of file statistical_corrector.hh.

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


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

Generated on Wed Dec 21 2022 10:23:38 for gem5 by doxygen 1.9.1