|
gem5 [DEVELOP-FOR-25.0]
|
#include <multiperspective_perceptron.hh>
Public Member Functions | |
| MODHIST (int p1, int p2, 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. | |
| void | setBitRequirements () const override |
| Sets the size requirements of the table, used when initializing to set the proper size of the tables. | |
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. | |
| const int | p2 |
| Second parameter. | |
| const int | p3 |
| Third parameter. | |
| const double | coeff |
| Coefficient of the feature, models the accuracy of the feature. | |
| const int | size |
| Pre-assigned size in bits assigned to this feature. | |
| const int | width |
| Width of the table in bits. | |
| MultiperspectivePerceptron & | mpp |
| Reference to the branch predictor class. | |
Definition at line 610 of file multiperspective_perceptron.hh.
|
inline |
Definition at line 613 of file multiperspective_perceptron.hh.
References gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::coeff, gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::HistorySpec(), gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::mpp, gem5::branch_prediction::MultiperspectivePerceptron::MultiperspectivePerceptron(), gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p1, gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p2, gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::size, and gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::width.
|
inlineoverridevirtual |
Gets the hash to index the table, using the pc of the branch, and the index of the table.
| tid | Thread ID of the branch |
| pc | address of the branch |
| pc2 | address of the branch shifted 2 bits to the right |
| t | integer index of the table |
Implements gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec.
Definition at line 618 of file multiperspective_perceptron.hh.
References gem5::ArmISA::a, gem5::ArmISA::b, gem5::ArmISA::i, gem5::MipsISA::k, gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::mpp, gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p1, gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p2, gem5::MipsISA::pc, gem5::ArmISA::t, and gem5::RiscvISA::x.
|
inlineoverridevirtual |
Sets the size requirements of the table, used when initializing to set the proper size of the tables.
Reimplemented from gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec.
Definition at line 634 of file multiperspective_perceptron.hh.
References gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::mpp, gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p1, and gem5::branch_prediction::MultiperspectivePerceptron::HistorySpec::p2.