|
gem5
v20.1.0.5
|
These methods relate to the SatCounter interface. More...
Functions | |
| SatCounter::SatCounter (unsigned bits, uint8_t initial_val=0) | |
| Constructor for the counter. More... | |
| SatCounter::SatCounter (const SatCounter &other) | |
| Copy constructor. More... | |
| SatCounter & | SatCounter::operator= (const SatCounter &other) |
| Copy assignment. More... | |
| SatCounter::SatCounter (SatCounter &&other) | |
| Move constructor. More... | |
| SatCounter & | SatCounter::operator= (SatCounter &&other) |
| Move assignment. More... | |
| void | SatCounter::swap (SatCounter &other) |
| Swap the contents of every member of the class. More... | |
| SatCounter & | SatCounter::operator++ () |
| Pre-increment operator. More... | |
| SatCounter | SatCounter::operator++ (int) |
| Post-increment operator. More... | |
| SatCounter & | SatCounter::operator-- () |
| Pre-decrement operator. More... | |
| SatCounter | SatCounter::operator-- (int) |
| Post-decrement operator. More... | |
| SatCounter & | SatCounter::operator>>= (const int &shift) |
| Shift-right-assignment. More... | |
| SatCounter & | SatCounter::operator<<= (const int &shift) |
| Shift-left-assignment. More... | |
| SatCounter & | SatCounter::operator+= (const int &value) |
| Add-assignment. More... | |
| SatCounter & | SatCounter::operator-= (const int &value) |
| Subtract-assignment. More... | |
| SatCounter::operator uint8_t () const | |
| Read the counter's value. More... | |
| void | SatCounter::reset () |
| Reset the counter to its initial value. More... | |
| double | SatCounter::calcSaturation () const |
| Calculate saturation percentile of the current counter's value with regard to its maximum possible value. More... | |
| bool | SatCounter::isSaturated () const |
| Whether the counter has achieved its maximum value or not. More... | |
| uint8_t | SatCounter::saturate () |
| Saturate the counter. More... | |
These methods relate to the SatCounter interface.
|
inline |
Calculate saturation percentile of the current counter's value with regard to its maximum possible value.
Definition at line 297 of file sat_counter.hh.
References SatCounter::counter, and SatCounter::maxVal.
Referenced by Prefetcher::SignaturePath::calculateLookaheadConfidence(), Prefetcher::Stride::calculatePrefetch(), Prefetcher::IndirectMemory::calculatePrefetch(), Prefetcher::SignaturePath::calculatePrefetchConfidence(), and TEST().
|
inline |
Whether the counter has achieved its maximum value or not.
Definition at line 306 of file sat_counter.hh.
References SatCounter::counter, and SatCounter::maxVal.
Referenced by Prefetcher::SignaturePathV2::increasePatternEntryCounter(), and TEST().
|
inline |
Read the counter's value.
Definition at line 279 of file sat_counter.hh.
References SatCounter::counter.
|
inline |
Pre-increment operator.
Definition at line 157 of file sat_counter.hh.
References SatCounter::counter, and SatCounter::maxVal.
|
inline |
Post-increment operator.
Definition at line 171 of file sat_counter.hh.
|
inline |
Add-assignment.
Definition at line 240 of file sat_counter.hh.
References SatCounter::counter, and SatCounter::maxVal.
|
inline |
Pre-decrement operator.
Definition at line 184 of file sat_counter.hh.
References SatCounter::counter.
|
inline |
Post-decrement operator.
Definition at line 198 of file sat_counter.hh.
|
inline |
|
inline |
Shift-left-assignment.
Definition at line 224 of file sat_counter.hh.
References SatCounter::counter, SatCounter::maxVal, and ArmISA::shift.
|
inline |
|
inline |
Move assignment.
Definition at line 124 of file sat_counter.hh.
References SatCounter::counter, SatCounter::initialVal, and SatCounter::maxVal.
|
inline |
Shift-right-assignment.
Definition at line 211 of file sat_counter.hh.
References SatCounter::counter, and ArmISA::shift.
|
inline |
Reset the counter to its initial value.
Definition at line 286 of file sat_counter.hh.
References SatCounter::counter, and SatCounter::initialVal.
Referenced by Prefetcher::IrregularStreamBuffer::addStructuralToPhysicalEntry(), Prefetcher::IrregularStreamBuffer::calculatePrefetch(), Prefetcher::SignaturePath::PatternEntry::getStrideEntry(), Prefetcher::IndirectMemory::PrefetchTableEntry::invalidate(), Prefetcher::SignaturePath::PatternEntry::invalidate(), TEST(), and Prefetcher::IndirectMemory::trackMissIndex2().
|
inline |
Copy constructor.
Definition at line 86 of file sat_counter.hh.
|
inline |
Move constructor.
Definition at line 110 of file sat_counter.hh.
References SatCounter::counter, SatCounter::initialVal, and SatCounter::maxVal.
|
inlineexplicit |
Constructor for the counter.
The explicit keyword is used to make sure the user does not assign a number to the counter thinking it will be used as a counter value when it is in fact used as the number of bits.
| bits | How many bits the counter will have. |
| initial_val | Starting value for the counter. |
Definition at line 71 of file sat_counter.hh.
References bits(), fatal_if, and SatCounter::maxVal.
|
inline |
Saturate the counter.
Definition at line 315 of file sat_counter.hh.
References SatCounter::counter, and SatCounter::maxVal.
Referenced by TEST().
|
inline |
Swap the contents of every member of the class.
Used for the default copy-assignment created by the compiler.
| other | The other object to swap contents with. |
Definition at line 144 of file sat_counter.hh.
References SatCounter::counter, SatCounter::initialVal, and SatCounter::maxVal.
Referenced by SatCounter::operator=().