lfu_rp.hh (12684:44ebd2bc020f) lfu_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;

--- 26 unchanged lines hidden (view full) ---

35 * entry is always chosen to be evicted, regardless of the amount of times
36 * it has been touched, or how long has passed since its last touch.
37 */
38
39#ifndef __MEM_CACHE_REPLACEMENT_POLICIES_LFU_RP_HH__
40#define __MEM_CACHE_REPLACEMENT_POLICIES_LFU_RP_HH__
41
42#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;

--- 26 unchanged lines hidden (view full) ---

35 * entry is always chosen to be evicted, regardless of the amount of times
36 * it has been touched, or how long has passed since its last touch.
37 */
38
39#ifndef __MEM_CACHE_REPLACEMENT_POLICIES_LFU_RP_HH__
40#define __MEM_CACHE_REPLACEMENT_POLICIES_LFU_RP_HH__
41
42#include "mem/cache/replacement_policies/base.hh"
43#include "params/LFURP.hh"
44
43
44struct LFURPParams;
45
45class LFURP : public BaseReplacementPolicy
46{
47 protected:
48 /** LFU-specific implementation of replacement data. */
49 struct LFUReplData : ReplacementData
50 {
51 /** Number of references to this entry since it was reset. */
52 unsigned refCount;

--- 66 unchanged lines hidden ---
46class LFURP : public BaseReplacementPolicy
47{
48 protected:
49 /** LFU-specific implementation of replacement data. */
50 struct LFUReplData : ReplacementData
51 {
52 /** Number of references to this entry since it was reset. */
53 unsigned refCount;

--- 66 unchanged lines hidden ---