base.hh (12731:36a41bd85c0f) | base.hh (12743:b5ccee582b40) |
---|---|
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 /** | 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 /** |
|
199 * Align an address to the block size. 200 * @param addr the address to align. 201 * @return The block address. 202 */ 203 Addr blkAlign(Addr addr) const 204 { 205 return addr & ~blkMask; 206 } --- 4 unchanged lines hidden (view full) --- 211 * @return the block offset. 212 */ 213 int extractBlkOffset(Addr addr) const 214 { 215 return (addr & blkMask); 216 } 217 218 /** | 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 /** |
219 * Find the cache block given set and way 220 * @param set The set of the block. 221 * @param way The way of the block. 222 * @return The cache block. 223 */ 224 virtual CacheBlk *findBlockBySetAndWay(int set, int way) const = 0; 225 226 /** | |
227 * Limit the allocation for the cache ways. 228 * @param ways The maximum number of ways available for replacement. 229 */ 230 virtual void setWayAllocationMax(int ways) 231 { 232 panic("This tag class does not implement way allocation limit!\n"); 233 } 234 --- 110 unchanged lines hidden --- | 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 --- |