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; --- 24 unchanged lines hidden (view full) --- 33 * Declaration of a random replacement policy. 34 * The victim is chosen at random, if there are no invalid entries. 35 */ 36 37#ifndef __MEM_CACHE_REPLACEMENT_POLICIES_RANDOM_RP_HH__ 38#define __MEM_CACHE_REPLACEMENT_POLICIES_RANDOM_RP_HH__ 39 40#include "mem/cache/replacement_policies/base.hh" |
41 |
42struct RandomRPParams; 43 |
44class RandomRP : public BaseReplacementPolicy 45{ 46 protected: 47 /** MRU-specific implementation of replacement data. */ 48 struct RandomReplData : ReplacementData 49 { 50 /** 51 * Flag informing if the replacement data is valid or not. --- 69 unchanged lines hidden --- |