gem5  [DEVELOP-FOR-23.0]
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mru_rp.hh
Go to the documentation of this file.
1 
36 #ifndef __MEM_CACHE_REPLACEMENT_POLICIES_MRU_RP_HH__
37 #define __MEM_CACHE_REPLACEMENT_POLICIES_MRU_RP_HH__
38 
39 #include "base/types.hh"
41 
42 namespace gem5
43 {
44 
45 struct MRURPParams;
46 
47 namespace replacement_policy
48 {
49 
50 class MRU : public Base
51 {
52  protected:
55  {
58 
63  };
64 
65  public:
66  typedef MRURPParams Params;
67  MRU(const Params &p);
68  ~MRU() = default;
69 
76  void invalidate(const std::shared_ptr<ReplacementData>& replacement_data)
77  override;
78 
85  void touch(const std::shared_ptr<ReplacementData>& replacement_data) const
86  override;
87 
94  void reset(const std::shared_ptr<ReplacementData>& replacement_data) const
95  override;
96 
103  ReplaceableEntry* getVictim(const ReplacementCandidates& candidates) const
104  override;
105 
111  std::shared_ptr<ReplacementData> instantiateEntry() override;
112 };
113 
114 } // namespace replacement_policy
115 } // namespace gem5
116 
117 #endif // __MEM_CACHE_REPLACEMENT_POLICIES_MRU_RP_HH__
gem5::replacement_policy::Base::Params
BaseReplacementPolicyParams Params
Definition: base.hh:57
std::vector
STL vector class.
Definition: stl.hh:37
gem5::replacement_policy::MRU::getVictim
ReplaceableEntry * getVictim(const ReplacementCandidates &candidates) const override
Find replacement victim using access timestamps.
Definition: mru_rp.cc:73
gem5::replacement_policy::ReplacementData
The replacement data needed by replacement policies.
Definition: replaceable_entry.hh:48
gem5::replacement_policy::MRU::Params
MRURPParams Params
Definition: mru_rp.hh:66
gem5::VegaISA::p
Bitfield< 54 > p
Definition: pagetable.hh:70
gem5::Tick
uint64_t Tick
Tick count type.
Definition: types.hh:58
gem5::replacement_policy::MRU::MRUReplData
MRU-specific implementation of replacement data.
Definition: mru_rp.hh:54
gem5::replacement_policy::Base
A common base class of cache replacement policy objects.
Definition: base.hh:54
base.hh
gem5::replacement_policy::MRU::MRU
MRU(const Params &p)
Definition: mru_rp.cc:43
gem5::replacement_policy::MRU::reset
void reset(const std::shared_ptr< ReplacementData > &replacement_data) const override
Reset replacement data.
Definition: mru_rp.cc:65
gem5::replacement_policy::MRU::invalidate
void invalidate(const std::shared_ptr< ReplacementData > &replacement_data) override
Invalidate replacement data to set it as the next probable victim.
Definition: mru_rp.cc:49
gem5::replacement_policy::MRU::MRUReplData::lastTouchTick
Tick lastTouchTick
Tick on which the entry was last touched.
Definition: mru_rp.hh:57
types.hh
gem5::ReplaceableEntry
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement func...
Definition: replaceable_entry.hh:62
gem5::replacement_policy::MRU
Definition: mru_rp.hh:50
gem5::replacement_policy::MRU::touch
void touch(const std::shared_ptr< ReplacementData > &replacement_data) const override
Touch an entry to update its replacement data.
Definition: mru_rp.cc:57
gem5::replacement_policy::MRU::instantiateEntry
std::shared_ptr< ReplacementData > instantiateEntry() override
Instantiate a replacement data entry.
Definition: mru_rp.cc:99
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: gpu_translation_state.hh:37
gem5::replacement_policy::MRU::~MRU
~MRU()=default
gem5::replacement_policy::MRU::MRUReplData::MRUReplData
MRUReplData()
Default constructor.
Definition: mru_rp.hh:62

Generated on Sun Jul 30 2023 01:56:57 for gem5 by doxygen 1.8.17