gem5  v22.1.0.0
Public Member Functions | Public Attributes | List of all members
gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec Struct Referenceabstract

Base class to implement the predictor tables. More...

#include <multiperspective_perceptron.hh>

Inheritance diagram for gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec:
gem5::branch_prediction::MultiperspectivePerceptron::ACYCLIC gem5::branch_prediction::MultiperspectivePerceptron::BIAS gem5::branch_prediction::MultiperspectivePerceptron::BLURRYPATH gem5::branch_prediction::MultiperspectivePerceptron::GHIST gem5::branch_prediction::MultiperspectivePerceptron::GHISTMODPATH gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH gem5::branch_prediction::MultiperspectivePerceptron::IMLI gem5::branch_prediction::MultiperspectivePerceptron::LOCAL gem5::branch_prediction::MultiperspectivePerceptron::MODHIST gem5::branch_prediction::MultiperspectivePerceptron::MODPATH gem5::branch_prediction::MultiperspectivePerceptron::PATH gem5::branch_prediction::MultiperspectivePerceptron::RECENCY gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS gem5::branch_prediction::MultiperspectivePerceptron::SGHISTPATH

Public Member Functions

 HistorySpec (int _p1, int _p2, int _p3, double _coeff, int _size, int _width, MultiperspectivePerceptron &_mpp)
 
virtual unsigned int getHash (ThreadID tid, Addr pc, Addr pc2, int t) const =0
 Gets the hash to index the table, using the pc of the branch, and the index of the table. More...
 
virtual void setBitRequirements () const
 Sets the size requirements of the table, used when initializing to set the proper size of the tables. More...
 

Public Attributes

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
More...
 
MultiperspectivePerceptronmpp
 Reference to the branch predictor class. More...
 

Detailed Description

Base class to implement the predictor tables.

Definition at line 225 of file multiperspective_perceptron.hh.

Constructor & Destructor Documentation

◆ HistorySpec()

gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::HistorySpec ( int  _p1,
int  _p2,
int  _p3,
double  _coeff,
int  _size,
int  _width,
MultiperspectivePerceptron _mpp 
)
inline

Definition at line 242 of file multiperspective_perceptron.hh.

Member Function Documentation

◆ getHash()

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

◆ setBitRequirements()

virtual void gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::setBitRequirements ( ) const
inlinevirtual

Member Data Documentation

◆ coeff

const double gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::coeff

Coefficient of the feature, models the accuracy of the feature.

Definition at line 234 of file multiperspective_perceptron.hh.

Referenced by gem5::branch_prediction::MultiperspectivePerceptron::computeOutput(), and gem5::branch_prediction::MultiperspectivePerceptron::train().

◆ mpp

MultiperspectivePerceptron& gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::mpp

Reference to the branch predictor class.

Definition at line 240 of file multiperspective_perceptron.hh.

Referenced by gem5::branch_prediction::MultiperspectivePerceptron::GHIST::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::ACYCLIC::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::MODHIST::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::RECENCY::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::IMLI::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::PATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::LOCAL::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::MODPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::GHISTMODPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::BLURRYPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::SGHISTPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::GHIST::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::ACYCLIC::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::MODHIST::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::RECENCY::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::IMLI::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::PATH::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::LOCAL::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::MODPATH::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::GHISTMODPATH::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::BLURRYPATH::setBitRequirements(), and gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS::setBitRequirements().

◆ p1

const int gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p1

First parameter.

Definition at line 228 of file multiperspective_perceptron.hh.

Referenced by gem5::branch_prediction::MultiperspectivePerceptron::GHIST::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::ACYCLIC::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::MODHIST::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::RECENCY::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::IMLI::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::PATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::LOCAL::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::MODPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::GHISTMODPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::BLURRYPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::SGHISTPATH::getHash(), gem5::branch_prediction::MultiperspectivePerceptron::ACYCLIC::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::MODHIST::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::RECENCY::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::IMLI::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::PATH::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::MODPATH::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::GHISTPATH::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::GHISTMODPATH::setBitRequirements(), gem5::branch_prediction::MultiperspectivePerceptron::BLURRYPATH::setBitRequirements(), and gem5::branch_prediction::MultiperspectivePerceptron::RECENCYPOS::setBitRequirements().

◆ p2

const int gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p2

◆ p3

const int gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p3

◆ size

const int gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::size

Pre-assigned size in bits assigned to this feature.

Definition at line 236 of file multiperspective_perceptron.hh.

◆ width

const int gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::width

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