gem5 v24.0.0.0
|
Branch information data. More...
#include <multiperspective_perceptron.hh>
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. | |
bool | prediction |
Result of the prediction (true is taken) | |
int | yout |
Score of the perceptron. | |
Static Private Member Functions | |
static unsigned int | hash1 (unsigned int a) |
PC Hash functions. | |
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 | |
const unsigned short int | pc2 |
pc of the branch, shifted 2 bits to the right | |
const unsigned short int | hpc |
pc of the branch, hashed | |
const bool | condBranch |
Whether this is a conditional branch. | |
Branch information data.
Definition at line 72 of file multiperspective_perceptron.hh.
|
inline |
Definition at line 132 of file multiperspective_perceptron.hh.
|
inline |
Definition at line 149 of file multiperspective_perceptron.hh.
References hpc.
Referenced by gem5::branch_prediction::MultiperspectivePerceptron::update().
|
inline |
Definition at line 145 of file multiperspective_perceptron.hh.
References hpc.
|
inline |
Definition at line 137 of file multiperspective_perceptron.hh.
References pc.
|
inline |
Definition at line 141 of file multiperspective_perceptron.hh.
References pc2.
|
inlinestaticprivate |
Definition at line 106 of file multiperspective_perceptron.hh.
References hash1(), hash2(), and gem5::ArmISA::i.
Referenced by hashPC().
|
inlinestaticprivate |
PC Hash functions.
Definition at line 86 of file multiperspective_perceptron.hh.
References gem5::ArmISA::a.
Referenced by hash().
|
inlinestaticprivate |
Definition at line 95 of file multiperspective_perceptron.hh.
References gem5::MipsISA::c2.
Referenced by hash().
|
inlinestaticprivate |
Definition at line 111 of file multiperspective_perceptron.hh.
References hash(), pc, gem5::branch_prediction::MultiperspectivePerceptron::pcshift, and gem5::RiscvISA::x.
|
inline |
Definition at line 153 of file multiperspective_perceptron.hh.
References condBranch.
|
private |
Whether this is a conditional branch.
Definition at line 81 of file multiperspective_perceptron.hh.
Referenced by isUnconditional().
bool gem5::branch_prediction::MultiperspectivePerceptron::MPPBranchInfo::filtered |
Whether this branch has been filtered by the prefetcher.
Definition at line 126 of file multiperspective_perceptron.hh.
|
private |
pc of the branch, hashed
Definition at line 79 of file multiperspective_perceptron.hh.
Referenced by getHashFilter(), and getHPC().
|
private |
pc of the branch
Definition at line 75 of file multiperspective_perceptron.hh.
|
private |
pc of the branch, shifted 2 bits to the right
Definition at line 77 of file multiperspective_perceptron.hh.
Referenced by getPC2().
bool gem5::branch_prediction::MultiperspectivePerceptron::MPPBranchInfo::prediction |
Result of the prediction (true is taken)
Definition at line 128 of file multiperspective_perceptron.hh.
int gem5::branch_prediction::MultiperspectivePerceptron::MPPBranchInfo::yout |
Score of the perceptron.
Definition at line 130 of file multiperspective_perceptron.hh.