60 "Number of BTB lookups"),
62 "Number of BTB misses"),
64 "Number of BTB updates"),
66 "Number of BTB mispredictions. "
67 "No target found or target wrong."),
69 "Number of BTB evictions")
73 .init(enums::Num_BranchType)
77 .init(enums::Num_BranchType)
81 .init(enums::Num_BranchType)
85 .init(enums::Num_BranchType)
90 for (
int i = 0;
i < enums::Num_BranchType;
i++) {
91 lookups.subname(
i, enums::BranchTypeStrings[
i]);
92 misses.subname(
i, enums::BranchTypeStrings[
i]);
93 updates.subname(
i, enums::BranchTypeStrings[
i]);
ClockedObject(const ClockedObjectParams &p)
const unsigned numThreads
Number of the threads for which the branch history is maintained.
BranchTargetBuffer(const Params ¶ms)
gem5::branch_prediction::BranchTargetBuffer::BranchTargetBufferStats stats
BranchTargetBufferParams Params
#define ADD_STAT(n,...)
Convenience macro to add a stat to a statistics group.
const Params & params() const
const FlagsType pdf
Print the percent of the total that this entry represents.
const FlagsType nozero
Don't print if this is zero.
const FlagsType total
Print the total.
Copyright (c) 2024 Arm Limited All rights reserved.
statistics::Vector misses
statistics::Vector mispredict
statistics::Vector lookups
statistics::Scalar evictions
statistics::Vector updates
BranchTargetBufferStats(statistics::Group *parent)