1/* 2 * Copyright (c) 2012-2014,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 --- 182 unchanged lines hidden (view full) --- 191 std::string print(); 192 193 /** 194 * Find a block using the memory address 195 */ 196 virtual CacheBlk * findBlock(Addr addr, bool is_secure) const = 0; 197 198 /** |
199 * Find a block given set and way. 200 * 201 * @param set The set of the block. 202 * @param way The way of the block. 203 * @return The block. 204 */ 205 virtual ReplaceableEntry* findBlockBySetAndWay(int set, int way) const = 0; 206 207 /** |
208 * Align an address to the block size. 209 * @param addr the address to align. 210 * @return The block address. 211 */ 212 Addr blkAlign(Addr addr) const 213 { 214 return addr & ~blkMask; 215 } --- 4 unchanged lines hidden (view full) --- 220 * @return the block offset. 221 */ 222 int extractBlkOffset(Addr addr) const 223 { 224 return (addr & blkMask); 225 } 226 227 /** |
228 * Limit the allocation for the cache ways. 229 * @param ways The maximum number of ways available for replacement. 230 */ 231 virtual void setWayAllocationMax(int ways) 232 { 233 panic("This tag class does not implement way allocation limit!\n"); 234 } 235 --- 110 unchanged lines hidden --- |