fa_lru.hh (13419:aaadcfae091a) | fa_lru.hh (13752:135bb759ee9c) |
---|---|
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/cache_blk.hh" 64#include "mem/cache/tags/base.hh" | 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/cache_blk.hh" 64#include "mem/cache/tags/base.hh" |
65#include "mem/packet.hh" |
|
65#include "params/FALRU.hh" 66 67// Uncomment to enable sanity checks for the FALRU cache and the 68// TrackedCaches class 69//#define FALRU_DEBUG 70 71class BaseCache; 72class ReplaceableEntry; --- 149 unchanged lines hidden (view full) --- 222 * @return Cache block to be replaced. 223 */ 224 CacheBlk* findVictim(Addr addr, const bool is_secure, 225 std::vector<CacheBlk*>& evict_blks) const override; 226 227 /** 228 * Insert the new block into the cache and update replacement data. 229 * | 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 BaseCache; 73class ReplaceableEntry; --- 149 unchanged lines hidden (view full) --- 223 * @return Cache block to be replaced. 224 */ 225 CacheBlk* findVictim(Addr addr, const bool is_secure, 226 std::vector<CacheBlk*>& evict_blks) const override; 227 228 /** 229 * Insert the new block into the cache and update replacement data. 230 * |
230 * @param addr Address of the block. 231 * @param is_secure Whether the block is in secure space or not. 232 * @param src_master_ID The source requestor ID. 233 * @param task_ID The new task ID. | 231 * @param pkt Packet holding the address to update |
234 * @param blk The block to update. 235 */ | 232 * @param blk The block to update. 233 */ |
236 void insertBlock(const Addr addr, const bool is_secure, 237 const int src_master_ID, const uint32_t task_ID, 238 CacheBlk *blk) override; | 234 void insertBlock(const PacketPtr pkt, CacheBlk *blk) override; |
239 240 /** 241 * Generate the tag from the addres. For fully associative this is just the 242 * block address. 243 * @param addr The address to get the tag from. 244 * @return The tag. 245 */ 246 Addr extractTag(Addr addr) const override --- 151 unchanged lines hidden --- | 235 236 /** 237 * Generate the tag from the addres. For fully associative this is just the 238 * block address. 239 * @param addr The address to get the tag from. 240 * @return The tag. 241 */ 242 Addr extractTag(Addr addr) const override --- 151 unchanged lines hidden --- |