36#ifndef __MEM_CACHE_REPLACEMENT_POLICIES_SHIP_RP_HH__
37#define __MEM_CACHE_REPLACEMENT_POLICIES_SHIP_RP_HH__
51struct SHiPMemRPParams;
54namespace replacement_policy
128 void invalidate(
const std::shared_ptr<ReplacementData>& replacement_data)
138 void touch(
const std::shared_ptr<ReplacementData>& replacement_data,
140 void touch(
const std::shared_ptr<ReplacementData>& replacement_data)
const
150 void reset(
const std::shared_ptr<ReplacementData>& replacement_data,
152 void reset(
const std::shared_ptr<ReplacementData>& replacement_data)
const
185 SHiPPC(
const SHiPPCRPParams &
p);
Copyright (c) 2018-2020 Inria All rights reserved.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
SHiP that Uses memory addresses as signatures.
SHiPMem(const SHiPMemRPParams &p)
SignatureType getSignature(const PacketPtr pkt) const override
Extract signature from packet.
SHiP that Uses PCs as signatures.
SHiPPC(const SHiPPCRPParams &p)
const SignatureType NO_PC_SIGNATURE
Signature to be used when no PC is provided in an access.
SignatureType getSignature(const PacketPtr pkt) const override
Extract signature from packet.
SHiP-specific implementation of replacement data.
SignatureType getSignature() const
Get entry's signature.
bool outcome
Outcome of insertion; set to one if entry is re-referenced.
bool wasReReferenced() const
Get whether entry has been re-referenced since insertion.
SHiPReplData(int num_bits)
void setSignature(SignatureType signature)
Set this entry's signature and reset outcome.
SignatureType signature
Signature that caused the insertion of this entry.
void setReReferenced()
Set that this entry has been re-referenced.
std::size_t SignatureType
virtual SignatureType getSignature(const PacketPtr pkt) const =0
Extract signature from packet.
const double insertionThreshold
Saturation percentage at which an entry starts being inserted as intermediate re-reference.
void touch(const std::shared_ptr< ReplacementData > &replacement_data, const PacketPtr pkt) override
Touch an entry to update its replacement data.
void invalidate(const std::shared_ptr< ReplacementData > &replacement_data) override
Invalidate replacement data to set it as the next probable victim.
std::vector< SatCounter8 > SHCT
Signature History Counter Table; learns the re-reference behavior of a signature.
std::shared_ptr< ReplacementData > instantiateEntry() override
Instantiate a replacement data entry.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Declaration of the Packet class.
BRRIP-specific implementation of replacement data.