gem5
v24.0.0.0
Loading...
Searching...
No Matches
mem
cache
replacement_policies
fifo_rp.hh
Go to the documentation of this file.
1
36
#ifndef __MEM_CACHE_REPLACEMENT_POLICIES_FIFO_RP_HH__
37
#define __MEM_CACHE_REPLACEMENT_POLICIES_FIFO_RP_HH__
38
39
#include "
base/types.hh
"
40
#include "
mem/cache/replacement_policies/base.hh
"
41
42
namespace
gem5
43
{
44
45
struct
FIFORPParams;
46
47
namespace
replacement_policy
48
{
49
50
class
FIFO
:
public
Base
51
{
52
protected
:
54
struct
FIFOReplData
:
ReplacementData
55
{
57
Tick
tickInserted
;
61
FIFOReplData
() :
tickInserted
(0) {}
62
};
63
64
private
:
69
mutable
Tick
timeTicks
;
70
71
public
:
72
typedef
FIFORPParams
Params
;
73
FIFO
(
const
Params
&
p
);
74
~FIFO
() =
default
;
75
82
void
invalidate
(
const
std::shared_ptr<ReplacementData>& replacement_data)
83
override
;
84
91
void
touch
(
const
std::shared_ptr<ReplacementData>& replacement_data)
const
92
override
;
93
100
void
reset
(
const
std::shared_ptr<ReplacementData>& replacement_data)
const
101
override
;
102
109
ReplaceableEntry
*
getVictim
(
const
ReplacementCandidates
& candidates)
const
110
override
;
111
117
std::shared_ptr<ReplacementData>
instantiateEntry
()
override
;
118
};
119
120
}
// namespace replacement_policy
121
}
// namespace gem5
122
123
#endif
// __MEM_CACHE_REPLACEMENT_POLICIES_FIFO_RP_HH__
types.hh
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
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:63
gem5::replacement_policy::Base
A common base class of cache replacement policy objects.
Definition
base.hh:55
gem5::replacement_policy::FIFO
Definition
fifo_rp.hh:51
gem5::replacement_policy::FIFO::Params
FIFORPParams Params
Definition
fifo_rp.hh:72
gem5::replacement_policy::FIFO::instantiateEntry
std::shared_ptr< ReplacementData > instantiateEntry() override
Instantiate a replacement data entry.
Definition
fifo_rp.cc:92
gem5::replacement_policy::FIFO::getVictim
ReplaceableEntry * getVictim(const ReplacementCandidates &candidates) const override
Find replacement victim using insertion timestamps.
Definition
fifo_rp.cc:71
gem5::replacement_policy::FIFO::timeTicks
Tick timeTicks
A counter that tracks the number of ticks since being created to avoid a tie.
Definition
fifo_rp.hh:69
gem5::replacement_policy::FIFO::invalidate
void invalidate(const std::shared_ptr< ReplacementData > &replacement_data) override
Invalidate replacement data to set it as the next probable victim.
Definition
fifo_rp.cc:49
gem5::replacement_policy::FIFO::~FIFO
~FIFO()=default
gem5::replacement_policy::FIFO::FIFO
FIFO(const Params &p)
Definition
fifo_rp.cc:43
gem5::replacement_policy::FIFO::touch
void touch(const std::shared_ptr< ReplacementData > &replacement_data) const override
Touch an entry to update its replacement data.
Definition
fifo_rp.cc:57
std::vector
STL vector class.
Definition
stl.hh:37
base.hh
gem5::MipsISA::p
Bitfield< 0 > p
Definition
pra_constants.hh:326
gem5::statistics::reset
void reset()
Definition
statistics.cc:309
gem5
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Definition
binary32.hh:36
gem5::Tick
uint64_t Tick
Tick count type.
Definition
types.hh:58
gem5::replacement_policy::FIFO::FIFOReplData
FIFO-specific implementation of replacement data.
Definition
fifo_rp.hh:55
gem5::replacement_policy::FIFO::FIFOReplData::tickInserted
Tick tickInserted
Tick on which the entry was inserted.
Definition
fifo_rp.hh:57
gem5::replacement_policy::FIFO::FIFOReplData::FIFOReplData
FIFOReplData()
Default constructor.
Definition
fifo_rp.hh:61
gem5::replacement_policy::ReplacementData
The replacement data needed by replacement policies.
Definition
replaceable_entry.hh:48
Generated on Tue Jun 18 2024 16:24:05 for gem5 by
doxygen
1.11.0