random_rp.cc (12718:abad79926b86) | random_rp.cc (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; --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Daniel Carvalho 29 */ 30 31#include "mem/cache/replacement_policies/random_rp.hh" 32 | 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; --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Daniel Carvalho 29 */ 30 31#include "mem/cache/replacement_policies/random_rp.hh" 32 |
33#include <cassert> 34#include <memory> 35 |
|
33#include "base/random.hh" | 36#include "base/random.hh" |
34#include "mem/cache/blk.hh" | 37#include "params/RandomRP.hh" |
35 36RandomRP::RandomRP(const Params *p) 37 : BaseReplacementPolicy(p) 38{ 39} 40 41void 42RandomRP::invalidate(const std::shared_ptr<ReplacementData>& replacement_data) --- 54 unchanged lines hidden --- | 38 39RandomRP::RandomRP(const Params *p) 40 : BaseReplacementPolicy(p) 41{ 42} 43 44void 45RandomRP::invalidate(const std::shared_ptr<ReplacementData>& replacement_data) --- 54 unchanged lines hidden --- |