110970Sdavid.hashe@amd.com# 210970Sdavid.hashe@amd.com# Copyright (c) 2013 Advanced Micro Devices, Inc 310970Sdavid.hashe@amd.com# All rights reserved. 410970Sdavid.hashe@amd.com# 510970Sdavid.hashe@amd.com# Redistribution and use in source and binary forms, with or without 610970Sdavid.hashe@amd.com# modification, are permitted provided that the following conditions are 710970Sdavid.hashe@amd.com# met: redistributions of source code must retain the above copyright 810970Sdavid.hashe@amd.com# notice, this list of conditions and the following disclaimer; 910970Sdavid.hashe@amd.com# redistributions in binary form must reproduce the above copyright 1010970Sdavid.hashe@amd.com# notice, this list of conditions and the following disclaimer in the 1110970Sdavid.hashe@amd.com# documentation and/or other materials provided with the distribution; 1210970Sdavid.hashe@amd.com# neither the name of the copyright holders nor the names of its 1310970Sdavid.hashe@amd.com# contributors may be used to endorse or promote products derived from 1410970Sdavid.hashe@amd.com# this software without specific prior written permission. 1510970Sdavid.hashe@amd.com# 1610970Sdavid.hashe@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1710970Sdavid.hashe@amd.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1810970Sdavid.hashe@amd.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1910970Sdavid.hashe@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2010970Sdavid.hashe@amd.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2110970Sdavid.hashe@amd.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2210970Sdavid.hashe@amd.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2310970Sdavid.hashe@amd.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2410970Sdavid.hashe@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2510970Sdavid.hashe@amd.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2610970Sdavid.hashe@amd.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2710970Sdavid.hashe@amd.com# 2810970Sdavid.hashe@amd.com# Author: Derek Hower 2910970Sdavid.hashe@amd.com 3013665Sandreas.sandberg@arm.comfrom m5.objects.ReplacementPolicy import ReplacementPolicy 3110970Sdavid.hashe@amd.com 3210970Sdavid.hashe@amd.comclass PseudoLRUReplacementPolicy(ReplacementPolicy): 3310970Sdavid.hashe@amd.com type = 'PseudoLRUReplacementPolicy' 3410970Sdavid.hashe@amd.com cxx_class = 'PseudoLRUPolicy' 3510970Sdavid.hashe@amd.com cxx_header = 'mem/ruby/structures/PseudoLRUPolicy.hh' 36