gem5  v22.1.0.0
Public Member Functions | List of all members
gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH Class Reference

#include <multiperspective_perceptron.hh>

Inheritance diagram for gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH:

Public Member Functions

 GHISTPATH (int p1, int p2, int p3, 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. More...
void setBitRequirements () const override
 Sets the size requirements of the table, used when initializing to set the proper size of the tables. More...
- 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)

Additional Inherited Members

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

Detailed Description

Definition at line 804 of file multiperspective_perceptron.hh.

Constructor & Destructor Documentation


gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH::GHISTPATH ( int  p1,
int  p2,
int  p3,
double  coeff,
int  size,
int  width,
MultiperspectivePerceptron mpp 

Definition at line 807 of file multiperspective_perceptron.hh.

Member Function Documentation

◆ getHash()

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

◆ setBitRequirements()

void gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH::setBitRequirements ( ) const

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

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