gem5  v20.1.0.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
StatisticalCorrector::SCThreadHistory Struct Reference

#include <statistical_corrector.hh>

Inheritance diagram for StatisticalCorrector::SCThreadHistory:
MPP_StatisticalCorrector::MPP_SCThreadHistory

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

Constructor & Destructor Documentation

◆ SCThreadHistory()

StatisticalCorrector::SCThreadHistory::SCThreadHistory ( )
inline

Definition at line 70 of file statistical_corrector.hh.

References bwHist, imliCount, and numOrdinalHistories.

Member Function Documentation

◆ getEntry()

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

Definition at line 122 of file statistical_corrector.hh.

References localHistories, MipsISA::pc, and shifts.

Referenced by getLocalHistory(), and updateLocalHistory().

◆ getLocalHistory()

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

Definition at line 94 of file statistical_corrector.hh.

References getEntry(), localHistories, numOrdinalHistories, and MipsISA::pc.

◆ initLocalHistory()

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

◆ setNumOrdinalHistories()

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

Definition at line 78 of file statistical_corrector.hh.

References localHistories, numOrdinalHistories, and shifts.

◆ updateLocalHistory()

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

Member Data Documentation

◆ bwHist

int64_t StatisticalCorrector::SCThreadHistory::bwHist

◆ imliCount

int64_t StatisticalCorrector::SCThreadHistory::imliCount

◆ localHistories

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

◆ numOrdinalHistories

unsigned StatisticalCorrector::SCThreadHistory::numOrdinalHistories
private

◆ shifts

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

Definition at line 119 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 Sep 30 2020 14:02:32 for gem5 by doxygen 1.8.17