gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::PcCountPair Class Reference

#include <pc_count_pair.hh>

Classes

struct  HashFunction
 Enable hashing for this parameter. More...
 

Public Member Functions

constexpr PcCountPair (Addr _pc, int _count)
 Explicit constructor assigning the pc and count values.
 
 PcCountPair ()
 Default constructor for parameter classes.
 
constexpr Addr getPC () const
 Returns the Program Counter address.
 
constexpr int getCount () const
 Returns the count of the Program.
 
constexpr bool operator> (const PcCountPair &cc) const
 Greater than comparison.
 
constexpr bool operator== (const PcCountPair &cc) const
 Equal comparison.
 
std::string to_string () const
 String format.
 

Private Attributes

Addr pc
 The Program Counter address.
 
int count
 The count of the Program Counter address.
 

Detailed Description

Definition at line 37 of file pc_count_pair.hh.

Constructor & Destructor Documentation

◆ PcCountPair() [1/2]

gem5::PcCountPair::PcCountPair ( Addr _pc,
int _count )
inlineexplicitconstexpr

Explicit constructor assigning the pc and count values.

Definition at line 50 of file pc_count_pair.hh.

◆ PcCountPair() [2/2]

gem5::PcCountPair::PcCountPair ( )
inline

Default constructor for parameter classes.

Definition at line 54 of file pc_count_pair.hh.

Member Function Documentation

◆ getCount()

int gem5::PcCountPair::getCount ( ) const
inlineconstexpr

Returns the count of the Program.

Definition at line 59 of file pc_count_pair.hh.

References count.

Referenced by gem5::init_pc(), operator==(), and operator>().

◆ getPC()

Addr gem5::PcCountPair::getPC ( ) const
inlineconstexpr

Returns the Program Counter address.

Definition at line 57 of file pc_count_pair.hh.

References pc.

Referenced by gem5::init_pc(), and operator==().

◆ operator==()

bool gem5::PcCountPair::operator== ( const PcCountPair & cc) const
inlineconstexpr

Equal comparison.

Definition at line 70 of file pc_count_pair.hh.

References count, getCount(), getPC(), and pc.

◆ operator>()

bool gem5::PcCountPair::operator> ( const PcCountPair & cc) const
inlineconstexpr

Greater than comparison.

Definition at line 63 of file pc_count_pair.hh.

References count, and getCount().

◆ to_string()

std::string gem5::PcCountPair::to_string ( ) const
inline

String format.

Definition at line 77 of file pc_count_pair.hh.

References count, pc, and gem5::ArmISA::s.

Referenced by gem5::PcCountTrackerManager::checkCount(), and gem5::init_pc().

Member Data Documentation

◆ count

int gem5::PcCountPair::count
private

The count of the Program Counter address.

Definition at line 45 of file pc_count_pair.hh.

Referenced by getCount(), gem5::PcCountPair::HashFunction::operator()(), operator==(), operator>(), and to_string().

◆ pc

Addr gem5::PcCountPair::pc
private

The Program Counter address.

Definition at line 43 of file pc_count_pair.hh.

Referenced by getPC(), gem5::PcCountPair::HashFunction::operator()(), operator==(), and to_string().


The documentation for this class was generated from the following file:

Generated on Tue Jun 18 2024 16:24:13 for gem5 by doxygen 1.11.0