29#ifndef __MEM_CACHE_REPLACEMENT_POLICIES_DUELING_RP_HH__
30#define __MEM_CACHE_REPLACEMENT_POLICIES_DUELING_RP_HH__
42struct DuelingRPParams;
66 const std::shared_ptr<ReplacementData>& repl_data_b)
100 void invalidate(
const std::shared_ptr<ReplacementData>& replacement_data)
102 void touch(
const std::shared_ptr<ReplacementData>& replacement_data,
104 void touch(
const std::shared_ptr<ReplacementData>& replacement_data)
const
106 void reset(
const std::shared_ptr<ReplacementData>& replacement_data,
108 void reset(
const std::shared_ptr<ReplacementData>& replacement_data)
const
Dueler()
By default initializes entries as followers.
Duel between two sampled options to determine which is the winner.
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement func...
BaseReplacementPolicyParams Params
Base *const replPolicyB
Sub-replacement policy used in this multiple container.
ReplaceableEntry * getVictim(const ReplacementCandidates &candidates) const override
Find replacement victim among candidates.
std::shared_ptr< ReplacementData > instantiateEntry() override
Instantiate a replacement data entry.
void touch(const std::shared_ptr< ReplacementData > &replacement_data, const PacketPtr pkt) override
Update replacement data.
DuelingMonitor duelingMonitor
A dueling monitor that decides which is the best sub-policy based on their number of misses.
Base *const replPolicyA
Sub-replacement policy used in this multiple container.
gem5::replacement_policy::Dueling::DuelingStats duelingStats
void invalidate(const std::shared_ptr< ReplacementData > &replacement_data) override
Invalidate replacement data to set it as the next probable victim.
This is a simple scalar statistic, like a counter.
Copyright (c) 2024 Arm Limited All rights reserved.
std::vector< ReplaceableEntry * > ReplacementCandidates
Replacement candidates as chosen by the indexing policy.
Declaration of Statistics objects.
std::shared_ptr< ReplacementData > replDataB
std::shared_ptr< ReplacementData > replDataA
DuelerReplData(const std::shared_ptr< ReplacementData > &repl_data_a, const std::shared_ptr< ReplacementData > &repl_data_b)
Default constructor.
DuelingStats(statistics::Group *parent)
statistics::Scalar selectedB
Number of times B was selected on victimization.
statistics::Scalar selectedA
Number of times A was selected on victimization.
The replacement data needed by replacement policies.