|
gem5 v23.0.0.1
|
Local history entries, each enty contains the history of directions taken by a given branch. More...
#include <multiperspective_perceptron.hh>
Public Member Functions | |
| LocalHistories (int nlocal_histories, int histo_len) | |
| unsigned int | operator[] (Addr pc) const |
| Obtains the local history entry of a given branch. | |
| void | update (Addr pc, bool value) |
| Adds a history bit to the local history entry of a given branch. | |
| int | getLocalHistoryLength () const |
| Returns the number of bits of each local history entry. | |
| int | getSize () const |
| Size in bits required by all history entries. | |
Private Member Functions | |
| unsigned int | index (Addr pc) const |
| Index function given the pc of the branch. | |
Private Attributes | |
| std::vector< unsigned int > | localHistories |
| The array of histories. | |
| const int | localHistoryLength |
| Size in bits of each history entry. | |
Local history entries, each enty contains the history of directions taken by a given branch.
Definition at line 178 of file multiperspective_perceptron.hh.
|
inline |
Definition at line 190 of file multiperspective_perceptron.hh.
|
inline |
Returns the number of bits of each local history entry.
Definition at line 210 of file multiperspective_perceptron.hh.
References localHistoryLength.
|
inline |
Size in bits required by all history entries.
Definition at line 216 of file multiperspective_perceptron.hh.
References localHistories, and localHistoryLength.
|
inlineprivate |
Index function given the pc of the branch.
Definition at line 186 of file multiperspective_perceptron.hh.
References localHistories, and gem5::MipsISA::pc.
|
inline |
Obtains the local history entry of a given branch.
Definition at line 194 of file multiperspective_perceptron.hh.
References gem5::MipsISA::index, localHistories, and gem5::MipsISA::pc.
|
inline |
Adds a history bit to the local history entry of a given branch.
Definition at line 200 of file multiperspective_perceptron.hh.
References gem5::MipsISA::index, localHistories, localHistoryLength, and gem5::MipsISA::pc.
|
private |
The array of histories.
Definition at line 181 of file multiperspective_perceptron.hh.
Referenced by getSize(), index(), operator[](), and update().
|
private |
Size in bits of each history entry.
Definition at line 183 of file multiperspective_perceptron.hh.
Referenced by getLocalHistoryLength(), getSize(), and update().