gem5 [DEVELOP-FOR-25.1]
Loading...
Searching...
No Matches
gem5::o3::Decode::DecodeStats Struct Reference
Inheritance diagram for gem5::o3::Decode::DecodeStats:
gem5::statistics::Group

Public Member Functions

 DecodeStats (CPU *cpu)
Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
virtual ~Group ()
virtual void regStats ()
 Callback to set stat parameters.
virtual void resetStats ()
 Callback to reset stats.
virtual void preDumpStats ()
 Callback before stats are dumped.
void addStat (statistics::Info *info)
 Register a stat with this group.
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object.
const std::vector< Info * > & getStats () const
 Get all stats associated with this object.
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block.
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group.
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block.
 Group ()=delete
 Group (const Group &)=delete
Groupoperator= (const Group &)=delete

Public Attributes

statistics::Vector status
 Stat for total number of cycles spent in each decode state.
statistics::Scalar branchResolved
 Stat for number of times a branch is resolved at decode.
statistics::Scalar branchMispred
 Stat for number of times a branch mispredict is detected.
statistics::Scalar controlMispred
 Stat for number of times decode detected a non-control instruction incorrectly predicted as a branch.
statistics::Scalar decodedInsts
 Stat for total number of decoded instructions.
statistics::Scalar squashedInsts
 Stat for total number of squashed instructions.

Static Public Attributes

static std::string statusStrings [ThreadStatusMax]
static std::string statusDefinitions [ThreadStatusMax]

Detailed Description

Definition at line 302 of file decode.hh.

Constructor & Destructor Documentation

◆ DecodeStats()

Member Data Documentation

◆ branchMispred

statistics::Scalar gem5::o3::Decode::DecodeStats::branchMispred

Stat for number of times a branch mispredict is detected.

Definition at line 314 of file decode.hh.

Referenced by DecodeStats().

◆ branchResolved

statistics::Scalar gem5::o3::Decode::DecodeStats::branchResolved

Stat for number of times a branch is resolved at decode.

Definition at line 312 of file decode.hh.

Referenced by DecodeStats().

◆ controlMispred

statistics::Scalar gem5::o3::Decode::DecodeStats::controlMispred

Stat for number of times decode detected a non-control instruction incorrectly predicted as a branch.

Definition at line 318 of file decode.hh.

Referenced by DecodeStats().

◆ decodedInsts

statistics::Scalar gem5::o3::Decode::DecodeStats::decodedInsts

Stat for total number of decoded instructions.

Definition at line 320 of file decode.hh.

Referenced by DecodeStats().

◆ squashedInsts

statistics::Scalar gem5::o3::Decode::DecodeStats::squashedInsts

Stat for total number of squashed instructions.

Definition at line 322 of file decode.hh.

Referenced by DecodeStats().

◆ status

statistics::Vector gem5::o3::Decode::DecodeStats::status

Stat for total number of cycles spent in each decode state.

Definition at line 310 of file decode.hh.

Referenced by DecodeStats().

◆ statusDefinitions

std::string gem5::o3::Decode::DecodeStats::statusDefinitions
static
Initial value:
= {
"Number of cycles decode is running",
"Number of cycles decode is idle",
"Not Used",
"Number of cycles decode is squashing",
"Number of cycles decode is blocking",
"Number of cycles decode is unblocking",
}

Definition at line 305 of file decode.hh.

Referenced by DecodeStats().

◆ statusStrings

std::string gem5::o3::Decode::DecodeStats::statusStrings
static
Initial value:
= {
"Running",
"Idle",
"StartSquash",
"Squashing",
"Blocked",
"Unblocking",
}

Definition at line 304 of file decode.hh.

Referenced by DecodeStats().


The documentation for this struct was generated from the following files:

Generated on Mon Oct 27 2025 04:13:20 for gem5 by doxygen 1.14.0