gem5 v24.0.0.0
|
These methods relate to the SatCounter interface.
typedef GenericSatCounter<uint16_t> gem5::SatCounter16 |
Definition at line 338 of file sat_counter.hh.
typedef GenericSatCounter<uint32_t> gem5::SatCounter32 |
Definition at line 339 of file sat_counter.hh.
typedef GenericSatCounter<uint64_t> gem5::SatCounter64 |
Definition at line 340 of file sat_counter.hh.
typedef GenericSatCounter<uint8_t> gem5::SatCounter8 |
Definition at line 337 of file sat_counter.hh.
|
inline |
Calculate saturation percentile of the current counter's value with regard to its maximum possible value.
Definition at line 303 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, and gem5::GenericSatCounter< T >::maxVal.
Referenced by gem5::prefetch::SignaturePath::calculateLookaheadConfidence(), gem5::prefetch::IndirectMemory::calculatePrefetch(), gem5::prefetch::Stride::calculatePrefetch(), gem5::prefetch::SignaturePath::calculatePrefetchConfidence(), gem5::DuelingMonitor::DuelingMonitor(), gem5::DuelingMonitor::sample(), TEST(), and TEST_P().
|
inline |
Copy constructor.
Definition at line 92 of file sat_counter.hh.
|
inline |
Move constructor.
Definition at line 116 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, gem5::GenericSatCounter< T >::initialVal, and gem5::GenericSatCounter< T >::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 77 of file sat_counter.hh.
References gem5::bits(), fatal_if, and gem5::GenericSatCounter< T >::maxVal.
|
inline |
Whether the counter has achieved its maximum value or not.
Definition at line 312 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, and gem5::GenericSatCounter< T >::maxVal.
Referenced by gem5::prefetch::SignaturePathV2::increasePatternEntryCounter(), gem5::compression::FrequentValues::sampleValues(), TEST(), TEST(), and TEST().
|
inline |
Read the counter's value.
Definition at line 285 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter.
|
inline |
Pre-increment operator.
Definition at line 163 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, and gem5::GenericSatCounter< T >::maxVal.
|
inline |
Post-increment operator.
Definition at line 177 of file sat_counter.hh.
|
inline |
Add-assignment.
Definition at line 246 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, and gem5::GenericSatCounter< T >::maxVal.
|
inline |
Pre-decrement operator.
Definition at line 190 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter.
|
inline |
Post-decrement operator.
Definition at line 204 of file sat_counter.hh.
|
inline |
Subtract-assignment.
Definition at line 266 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter.
|
inline |
Shift-left-assignment.
Definition at line 229 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, gem5::GenericSatCounter< T >::maxVal, and gem5::ArmISA::shift.
|
inline |
Copy assignment.
Definition at line 103 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::swap().
|
inline |
Move assignment.
Definition at line 130 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, gem5::GenericSatCounter< T >::initialVal, and gem5::GenericSatCounter< T >::maxVal.
|
inline |
Shift-right-assignment.
Definition at line 217 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, and gem5::ArmISA::shift.
|
inline |
Reset the counter to its initial value.
Definition at line 292 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, and gem5::GenericSatCounter< T >::initialVal.
Referenced by gem5::prefetch::IrregularStreamBuffer::addStructuralToPhysicalEntry(), gem5::prefetch::IrregularStreamBuffer::calculatePrefetch(), gem5::prefetch::SignaturePath::PatternEntry::getStrideEntry(), gem5::compression::FrequentValues::VFTEntry::invalidate(), gem5::prefetch::IndirectMemory::PrefetchTableEntry::invalidate(), gem5::prefetch::SignaturePath::PatternEntry::invalidate(), TEST(), TEST(), TEST(), and gem5::prefetch::IndirectMemory::trackMissIndex2().
|
inline |
Saturate the counter.
Definition at line 321 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, and gem5::GenericSatCounter< T >::maxVal.
Referenced by gem5::DuelingMonitor::DuelingMonitor(), TEST(), TEST(), and TEST_P().
|
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 150 of file sat_counter.hh.
References gem5::GenericSatCounter< T >::counter, gem5::GenericSatCounter< T >::initialVal, and gem5::GenericSatCounter< T >::maxVal.
Referenced by gem5::GenericSatCounter< T >::operator=().