PseudoLRUPolicy.cc (11321:02e930db812d) PseudoLRUPolicy.cc (11793:ef606668d247)
1/*
2 * Copyright (c) 2013 Advanced Micro Devices, Inc
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 * Author: Derek Hower
29 */
30
31#include "mem/ruby/structures/PseudoLRUPolicy.hh"
32
1/*
2 * Copyright (c) 2013 Advanced Micro Devices, Inc
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 * Author: Derek Hower
29 */
30
31#include "mem/ruby/structures/PseudoLRUPolicy.hh"
32
33
34
35PseudoLRUPolicy::PseudoLRUPolicy(const Params * p)
36 : AbstractReplacementPolicy(p)
37{
38 // associativity cannot exceed capacity of tree representation
39 assert(m_num_sets > 0 &&
40 m_assoc > 1 &&
41 m_assoc <= (int64_t) sizeof(uint64_t)*4);
42

--- 71 unchanged lines hidden ---
33PseudoLRUPolicy::PseudoLRUPolicy(const Params * p)
34 : AbstractReplacementPolicy(p)
35{
36 // associativity cannot exceed capacity of tree representation
37 assert(m_num_sets > 0 &&
38 m_assoc > 1 &&
39 m_assoc <= (int64_t) sizeof(uint64_t)*4);
40

--- 71 unchanged lines hidden ---