gem5
v21.0.1.0
|
These methods relate to the SatCounter interface. More...
These methods relate to the SatCounter interface.
typedef GenericSatCounter<uint16_t> SatCounter16 |
Definition at line 335 of file sat_counter.hh.
typedef GenericSatCounter<uint32_t> SatCounter32 |
Definition at line 336 of file sat_counter.hh.
typedef GenericSatCounter<uint64_t> SatCounter64 |
Definition at line 337 of file sat_counter.hh.
typedef GenericSatCounter<uint8_t> SatCounter8 |
Definition at line 334 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 300 of file sat_counter.hh.
Referenced by Prefetcher::SignaturePath::calculateLookaheadConfidence(), Prefetcher::Stride::calculatePrefetch(), Prefetcher::IndirectMemory::calculatePrefetch(), Prefetcher::SignaturePath::calculatePrefetchConfidence(), and TEST().
|
inline |
Copy constructor.
Definition at line 89 of file sat_counter.hh.
|
inline |
Move constructor.
Definition at line 113 of file sat_counter.hh.
|
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 74 of file sat_counter.hh.
|
inline |
Whether the counter has achieved its maximum value or not.
Definition at line 309 of file sat_counter.hh.
Referenced by Prefetcher::SignaturePathV2::increasePatternEntryCounter(), Compressor::FrequentValues::sampleValues(), and TEST().
|
inline |
Read the counter's value.
Definition at line 282 of file sat_counter.hh.
|
inline |
Pre-increment operator.
Definition at line 160 of file sat_counter.hh.
|
inline |
Post-increment operator.
Definition at line 174 of file sat_counter.hh.
|
inline |
Add-assignment.
Definition at line 243 of file sat_counter.hh.
|
inline |
Pre-decrement operator.
Definition at line 187 of file sat_counter.hh.
|
inline |
Post-decrement operator.
Definition at line 201 of file sat_counter.hh.
|
inline |
Subtract-assignment.
Definition at line 263 of file sat_counter.hh.
|
inline |
Shift-left-assignment.
Definition at line 227 of file sat_counter.hh.
|
inline |
Copy assignment.
Definition at line 100 of file sat_counter.hh.
|
inline |
Move assignment.
Definition at line 127 of file sat_counter.hh.
|
inline |
Shift-right-assignment.
Definition at line 214 of file sat_counter.hh.
|
inline |
Reset the counter to its initial value.
Definition at line 289 of file sat_counter.hh.
Referenced by Prefetcher::IrregularStreamBuffer::addStructuralToPhysicalEntry(), Prefetcher::IrregularStreamBuffer::calculatePrefetch(), Prefetcher::SignaturePath::PatternEntry::getStrideEntry(), Prefetcher::IndirectMemory::PrefetchTableEntry::invalidate(), Prefetcher::SignaturePath::PatternEntry::invalidate(), Compressor::FrequentValues::VFTEntry::invalidate(), TEST(), and Prefetcher::IndirectMemory::trackMissIndex2().
|
inline |
Saturate the counter.
Definition at line 318 of file sat_counter.hh.
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 147 of file sat_counter.hh.
Referenced by GenericSatCounter< uint8_t >::operator=().