Deleted Added
sdiff udiff text old ( 11870:b470020b29de ) new ( 11893:3033b3e6a32a )
full compact
1/*
2 * Copyright (c) 2012-2013,2016 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

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

216 * Find the cache block given set and way
217 * @param set The set of the block.
218 * @param way The way of the block.
219 * @return The cache block.
220 */
221 CacheBlk* findBlockBySetAndWay(int set, int way) const override;
222
223 /**
224 * Align an address to the block size.
225 * @param addr the address to align.
226 * @return The aligned address.
227 */
228 Addr blkAlign(Addr addr) const
229 {
230 return (addr & ~(Addr)(blkSize-1));
231 }
232
233 /**
234 * Generate the tag from the addres. For fully associative this is just the
235 * block address.
236 * @param addr The address to get the tag from.
237 * @return The tag.
238 */
239 Addr extractTag(Addr addr) const override
240 {
241 return blkAlign(addr);

--- 50 unchanged lines hidden ---