gem5  v19.0.0.0
Public Member Functions | Public Attributes | Static Private Member Functions | Private Attributes | List of all members
MultiperspectivePerceptron::MPPBranchInfo Class Reference

Branch information data. More...

#include <multiperspective_perceptron.hh>

Inheritance diagram for MultiperspectivePerceptron::MPPBranchInfo:
MultiperspectivePerceptronTAGE::MPPTAGEBranchInfo

Public Member Functions

 MPPBranchInfo (Addr _pc, int pcshift, bool cb)
 
unsigned int getPC () const
 
unsigned short int getPC2 () const
 
unsigned short int getHPC () const
 
unsigned int getHashFilter (bool last_ghist_bit) const
 
bool isUnconditional () const
 

Public Attributes

bool filtered
 Whether this branch has been filtered by the prefetcher. More...
 
bool prediction
 Result of the prediction (true is taken) More...
 
int yout
 Score of the perceptron. More...
 

Static Private Member Functions

static unsigned int hash1 (unsigned int a)
 PC Hash functions. More...
 
static unsigned int hash2 (unsigned int key)
 
static unsigned int hash (unsigned int key, unsigned int i)
 
static unsigned int hashPC (unsigned int pc, int pcshift)
 

Private Attributes

const unsigned int pc
 pc of the branch More...
 
const unsigned short int pc2
 pc of the branch, shifted 2 bits to the right More...
 
const unsigned short int hpc
 pc of the branch, hashed More...
 
const bool condBranch
 Whether this is a conditional branch. More...
 

Detailed Description

Branch information data.

Definition at line 54 of file multiperspective_perceptron.hh.

Constructor & Destructor Documentation

◆ MPPBranchInfo()

MultiperspectivePerceptron::MPPBranchInfo::MPPBranchInfo ( Addr  _pc,
int  pcshift,
bool  cb 
)
inline

Definition at line 113 of file multiperspective_perceptron.hh.

Member Function Documentation

◆ getHashFilter()

unsigned int MultiperspectivePerceptron::MPPBranchInfo::getHashFilter ( bool  last_ghist_bit) const
inline

◆ getHPC()

unsigned short int MultiperspectivePerceptron::MPPBranchInfo::getHPC ( ) const
inline

◆ getPC()

unsigned int MultiperspectivePerceptron::MPPBranchInfo::getPC ( ) const
inline

◆ getPC2()

unsigned short int MultiperspectivePerceptron::MPPBranchInfo::getPC2 ( ) const
inline

◆ hash()

static unsigned int MultiperspectivePerceptron::MPPBranchInfo::hash ( unsigned int  key,
unsigned int  i 
)
inlinestaticprivate

◆ hash1()

static unsigned int MultiperspectivePerceptron::MPPBranchInfo::hash1 ( unsigned int  a)
inlinestaticprivate

PC Hash functions.

Definition at line 67 of file multiperspective_perceptron.hh.

References ArmISA::a.

Referenced by hash().

◆ hash2()

static unsigned int MultiperspectivePerceptron::MPPBranchInfo::hash2 ( unsigned int  key)
inlinestaticprivate

Definition at line 76 of file multiperspective_perceptron.hh.

References MipsISA::c2.

Referenced by hash().

◆ hashPC()

static unsigned int MultiperspectivePerceptron::MPPBranchInfo::hashPC ( unsigned int  pc,
int  pcshift 
)
inlinestaticprivate

◆ isUnconditional()

bool MultiperspectivePerceptron::MPPBranchInfo::isUnconditional ( ) const
inline

Member Data Documentation

◆ condBranch

const bool MultiperspectivePerceptron::MPPBranchInfo::condBranch
private

Whether this is a conditional branch.

Definition at line 62 of file multiperspective_perceptron.hh.

Referenced by isUnconditional().

◆ filtered

bool MultiperspectivePerceptron::MPPBranchInfo::filtered

Whether this branch has been filtered by the prefetcher.

Definition at line 107 of file multiperspective_perceptron.hh.

Referenced by MultiperspectivePerceptron::lookup(), and MultiperspectivePerceptron::update().

◆ hpc

const unsigned short int MultiperspectivePerceptron::MPPBranchInfo::hpc
private

pc of the branch, hashed

Definition at line 60 of file multiperspective_perceptron.hh.

Referenced by getHashFilter(), and getHPC().

◆ pc

const unsigned int MultiperspectivePerceptron::MPPBranchInfo::pc
private

◆ pc2

const unsigned short int MultiperspectivePerceptron::MPPBranchInfo::pc2
private

pc of the branch, shifted 2 bits to the right

Definition at line 58 of file multiperspective_perceptron.hh.

Referenced by getPC2(), and MultiperspectivePerceptron::HistorySpec::HistorySpec().

◆ prediction

bool MultiperspectivePerceptron::MPPBranchInfo::prediction

Result of the prediction (true is taken)

Definition at line 109 of file multiperspective_perceptron.hh.

Referenced by MultiperspectivePerceptron::lookup().

◆ yout

int MultiperspectivePerceptron::MPPBranchInfo::yout

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

Generated on Fri Feb 28 2020 16:27:13 for gem5 by doxygen 1.8.13