gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS Class Reference

#include <multiperspective_perceptron.hh>

Inheritance diagram for gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS:
gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec

Public Member Functions

 RECENCYPOS (int p1, double coeff, int size, int width, MultiperspectivePerceptron &mpp)
 
unsigned int getHash (ThreadID tid, Addr pc, Addr pc2, int t) const override
 Gets the hash to index the table, using the pc of the branch, and the index of the table.
 
void setBitRequirements () const override
 Sets the size requirements of the table, used when initializing to set the proper size of the tables.
 
- Public Member Functions inherited from gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec
 HistorySpec (int _p1, int _p2, int _p3, double _coeff, int _size, int _width, MultiperspectivePerceptron &_mpp)
 

Static Public Member Functions

static unsigned int hash (const std::vector< unsigned int short > &recency_stack, const std::vector< int > &table_sizes, unsigned short int pc, int l, int t)
 

Additional Inherited Members

- Public Attributes inherited from gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec
const int p1
 First parameter.
 
const int p2
 Second parameter.
 
const int p3
 Third parameter.
 
const double coeff
 Coefficient of the feature, models the accuracy of the feature.
 
const int size
 Pre-assigned size in bits assigned to this feature.
 
const int width
 Width of the table in bits

 
MultiperspectivePerceptronmpp
 Reference to the branch predictor class.
 

Detailed Description

Definition at line 969 of file multiperspective_perceptron.hh.

Constructor & Destructor Documentation

◆ RECENCYPOS()

gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS::RECENCYPOS ( int p1,
double coeff,
int size,
int width,
MultiperspectivePerceptron & mpp )
inline

Definition at line 972 of file multiperspective_perceptron.hh.

Member Function Documentation

◆ getHash()

unsigned int gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS::getHash ( ThreadID tid,
Addr pc,
Addr pc2,
int t ) const
inlineoverridevirtual

Gets the hash to index the table, using the pc of the branch, and the index of the table.

Parameters
tidThread ID of the branch
pcaddress of the branch
pc2address of the branch shifted 2 bits to the right
tinteger index of the table
Returns
resulting hash value that will be used to index the table

Implements gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec.

Definition at line 977 of file multiperspective_perceptron.hh.

References hash(), gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::mpp, gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p1, gem5::ArmISA::t, gem5::branch_prediction::MultiperspectivePerceptron::table_sizes, and gem5::branch_prediction::MultiperspectivePerceptron::threadData.

◆ hash()

static unsigned int gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS::hash ( const std::vector< unsigned int short > & recency_stack,
const std::vector< int > & table_sizes,
unsigned short int pc,
int l,
int t )
inlinestatic

◆ setBitRequirements()

void gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS::setBitRequirements ( ) const
inlineoverridevirtual

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

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