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 |
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 --- |