29 #ifndef __MEM_RUBY_STRUCTURES_ABSTRACTREPLACEMENTPOLICY_HH__
30 #define __MEM_RUBY_STRUCTURES_ABSTRACTREPLACEMENTPOLICY_HH__
34 #include "params/ReplacementPolicy.hh"
42 typedef ReplacementPolicyParams
Params;
47 virtual void touch(int64_t set, int64_t way,
Tick time) = 0;
50 virtual int64_t
getVictim(int64_t set)
const = 0;
66 #endif // __MEM_RUBY_STRUCTURES_ABSTRACTREPLACEMENTPOLICY_HH__
ReplacementPolicyParams Params
virtual bool useOccupancy() const
unsigned m_assoc
total number of sets
Tick ** m_last_ref_ptr
set associativity
uint64_t Tick
Tick count type.
virtual void touch(int64_t set, int64_t way, Tick time)=0
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
Tick getLastAccess(int64_t set, int64_t way)
void setCache(CacheMemory *pCache)
virtual ~AbstractReplacementPolicy()
AbstractReplacementPolicy(const Params *p)
Abstract superclass for simulation objects.
virtual int64_t getVictim(int64_t set) const =0