Deleted Added
sdiff udiff text old ( 13164:da6240a1ccfb ) new ( 13215:82cdb8db4643 )
full compact
1/*
2 * Copyright (c) 2012-2013,2016,2018 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 48 unchanged lines hidden (view full) ---

57
58#include "base/bitfield.hh"
59#include "base/intmath.hh"
60#include "base/logging.hh"
61#include "base/statistics.hh"
62#include "base/types.hh"
63#include "mem/cache/blk.hh"
64#include "mem/cache/tags/base.hh"
65#include "mem/packet.hh"
66#include "params/FALRU.hh"
67
68// Uncomment to enable sanity checks for the FALRU cache and the
69// TrackedCaches class
70//#define FALRU_DEBUG
71
72class ReplaceableEntry;
73

--- 135 unchanged lines hidden (view full) ---

209 * @return Cache block to be replaced.
210 */
211 CacheBlk* findVictim(Addr addr, const bool is_secure,
212 std::vector<CacheBlk*>& evict_blks) const override;
213
214 /**
215 * Insert the new block into the cache and update replacement data.
216 *
217 * @param pkt Packet holding the address to update
218 * @param blk The block to update.
219 */
220 void insertBlock(const PacketPtr pkt, CacheBlk *blk) override;
221
222 /**
223 * Generate the tag from the addres. For fully associative this is just the
224 * block address.
225 * @param addr The address to get the tag from.
226 * @return The tag.
227 */
228 Addr extractTag(Addr addr) const override

--- 151 unchanged lines hidden ---