base.hh (12566:d6d48df9bf0f) base.hh (12574:22936e2eb2da)
1/*
2 * Copyright (c) 2012-2014,2016-2017 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

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

250 }
251
252 virtual CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat) = 0;
253
254 virtual Addr extractTag(Addr addr) const = 0;
255
256 virtual void insertBlock(PacketPtr pkt, CacheBlk *blk) = 0;
257
1/*
2 * Copyright (c) 2012-2014,2016-2017 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

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

250 }
251
252 virtual CacheBlk* accessBlock(Addr addr, bool is_secure, Cycles &lat) = 0;
253
254 virtual Addr extractTag(Addr addr) const = 0;
255
256 virtual void insertBlock(PacketPtr pkt, CacheBlk *blk) = 0;
257
258 virtual Addr regenerateBlkAddr(Addr tag, unsigned set) const = 0;
258 /**
259 * Regenerate the block address.
260 *
261 * @param block The block.
262 * @return the block address.
263 */
264 virtual Addr regenerateBlkAddr(const CacheBlk* blk) const = 0;
259
260 virtual CacheBlk* findVictim(Addr addr) = 0;
261
262 virtual int extractSet(Addr addr) const = 0;
263
264 virtual void forEachBlk(CacheBlkVisitor &visitor) = 0;
265};
266

--- 17 unchanged lines hidden ---
265
266 virtual CacheBlk* findVictim(Addr addr) = 0;
267
268 virtual int extractSet(Addr addr) const = 0;
269
270 virtual void forEachBlk(CacheBlkVisitor &visitor) = 0;
271};
272

--- 17 unchanged lines hidden ---