29#ifndef __MEM_CACHE_REPLACEMENT_POLICIES_DUELING_RP_HH__
30#define __MEM_CACHE_REPLACEMENT_POLICIES_DUELING_RP_HH__
42struct DuelingRPParams;
44namespace replacement_policy
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
A dueler is an entry that may or may not be accounted for sampling.
Duel between two sampled options to determine which is the winner.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement func...
A common base class of cache replacement policy objects.
BaseReplacementPolicyParams Params
This replacement policy duels two replacement policies to find out which one provides the best result...
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 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Declaration of Statistics objects.
Dueler-specific implementation of replacement data.
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.