Go to the documentation of this file.
29 #ifndef __PC_COUNT_PAIR_HH__
30 #define __PC_COUNT_PAIR_HH__
89 size_t xHash = std::hash<int>()(item.
pc);
90 size_t yHash = std::hash<int>()(item.
count);
91 return xHash * 2 + yHash;
99 #endif // __PC_COUNT_PAIR_HH__
std::string to_string() const
String format.
const std::string to_string(sc_enc enc)
size_t operator()(const PcCountPair &item) const
Addr pc
The Program Counter address.
constexpr bool operator==(const PcCountPair &cc) const
Equal comparison.
int count
The count of the Program Counter address.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
PcCountPair()
Default constructor for parameter classes.
constexpr PcCountPair(Addr _pc, int _count)
Explicit constructor assigning the pc and count values.
constexpr Addr getPC() const
Returns the Program Counter address.
constexpr int getCount() const
Returns the count of the Program.
Enable hashing for this parameter.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
constexpr bool operator>(const PcCountPair &cc) const
Greater than comparison.
Generated on Sun Jul 30 2023 01:56:53 for gem5 by doxygen 1.8.17