38 #ifndef __MEM_CACHE_REPLACEMENT_POLICIES_SECOND_CHANCE_RP_HH__
39 #define __MEM_CACHE_REPLACEMENT_POLICIES_SECOND_CHANCE_RP_HH__
47 struct SecondChanceRPParams;
50 namespace replacement_policy
78 const std::shared_ptr<SecondChanceReplData>& replacement_data)
const;
92 void invalidate(
const std::shared_ptr<ReplacementData>& replacement_data)
100 void touch(
const std::shared_ptr<ReplacementData>& replacement_data)
const
110 void reset(
const std::shared_ptr<ReplacementData>& replacement_data)
const
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement func...
BaseReplacementPolicyParams Params
std::shared_ptr< ReplacementData > instantiateEntry() override
Instantiate a replacement data entry.
ReplaceableEntry * getVictim(const ReplacementCandidates &candidates) const override
Find replacement victim using insertion timestamps and second chance bit.
void reset(const std::shared_ptr< ReplacementData > &replacement_data) const override
Reset replacement data.
SecondChance(const Params &p)
void useSecondChance(const std::shared_ptr< SecondChanceReplData > &replacement_data) const
Use replacement data's second chance.
SecondChanceRPParams Params
void touch(const std::shared_ptr< ReplacementData > &replacement_data) const override
Touch an entry to update its re-insertion tick and second chance bit.
void invalidate(const std::shared_ptr< ReplacementData > &replacement_data) override
Invalidate replacement data to set it as the next probable victim.
Copyright (c) 2018-2020 Inria All rights reserved.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
GEM5_DEPRECATED_NAMESPACE(GuestABI, guest_abi)
FIFO-specific implementation of replacement data.
Second-Chance-specific implementation of replacement data.
SecondChanceReplData()
Default constructor.
bool hasSecondChance
This is different from isTouched because isTouched accounts only for insertion, while this bit is res...