lru_rp.hh (12684:44ebd2bc020f) | lru_rp.hh (12727:56c23b54bcb1) |
---|---|
1/** 2 * Copyright (c) 2018 Inria 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 25 unchanged lines hidden (view full) --- 34 * The victim is chosen using the timestamp. The timestamp may be true or 35 * pseudo, depending on the quantity of bits allocated for that. 36 */ 37 38#ifndef __MEM_CACHE_REPLACEMENT_POLICIES_LRU_RP_HH__ 39#define __MEM_CACHE_REPLACEMENT_POLICIES_LRU_RP_HH__ 40 41#include "mem/cache/replacement_policies/base.hh" | 1/** 2 * Copyright (c) 2018 Inria 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 25 unchanged lines hidden (view full) --- 34 * The victim is chosen using the timestamp. The timestamp may be true or 35 * pseudo, depending on the quantity of bits allocated for that. 36 */ 37 38#ifndef __MEM_CACHE_REPLACEMENT_POLICIES_LRU_RP_HH__ 39#define __MEM_CACHE_REPLACEMENT_POLICIES_LRU_RP_HH__ 40 41#include "mem/cache/replacement_policies/base.hh" |
42#include "params/LRURP.hh" | |
43 | 42 |
43struct LRURPParams; 44 |
|
44class LRURP : public BaseReplacementPolicy 45{ 46 protected: 47 /** LRU-specific implementation of replacement data. */ 48 struct LRUReplData : ReplacementData 49 { 50 /** Tick on which the entry was last touched. */ 51 Tick lastTouchTick; --- 66 unchanged lines hidden --- | 45class LRURP : public BaseReplacementPolicy 46{ 47 protected: 48 /** LRU-specific implementation of replacement data. */ 49 struct LRUReplData : ReplacementData 50 { 51 /** Tick on which the entry was last touched. */ 52 Tick lastTouchTick; --- 66 unchanged lines hidden --- |