Deleted Added
sdiff udiff text old ( 12684:44ebd2bc020f ) new ( 12727:56c23b54bcb1 )
full compact
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#include "params/RandomRP.hh"
42
43class RandomRP : public BaseReplacementPolicy
44{
45 protected:
46 /** MRU-specific implementation of replacement data. */
47 struct RandomReplData : ReplacementData
48 {
49 /**
50 * Flag informing if the replacement data is valid or not.

--- 69 unchanged lines hidden ---