fa_lru.hh (10815:169af9a2779f) | fa_lru.hh (10941:a39646f4c407) |
---|---|
1/* 2 * Copyright (c) 2012-2013 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 --- 222 unchanged lines hidden (view full) --- 231 */ 232 unsigned 233 getSubBlockSize() const 234 { 235 return blkSize; 236 } 237 238 /** | 1/* 2 * Copyright (c) 2012-2013 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 --- 222 unchanged lines hidden (view full) --- 231 */ 232 unsigned 233 getSubBlockSize() const 234 { 235 return blkSize; 236 } 237 238 /** |
239 * Return the number of sets this cache has 240 * @return The number of sets. 241 */ 242 unsigned 243 getNumSets() const 244 { 245 return 1; 246 } 247 248 /** 249 * Return the number of ways this cache has 250 * @return The number of ways. 251 */ 252 unsigned 253 getNumWays() const 254 { 255 return numBlocks; 256 } 257 258 /** 259 * Find the cache block given set and way 260 * @param set The set of the block. 261 * @param way The way of the block. 262 * @return The cache block. 263 */ 264 CacheBlk* findBlockBySetAndWay(int set, int way) const; 265 266 /** |
|
239 * Align an address to the block size. 240 * @param addr the address to align. 241 * @return The aligned address. 242 */ 243 Addr blkAlign(Addr addr) const 244 { 245 return (addr & ~(Addr)(blkSize-1)); 246 } --- 66 unchanged lines hidden --- | 267 * Align an address to the block size. 268 * @param addr the address to align. 269 * @return The aligned address. 270 */ 271 Addr blkAlign(Addr addr) const 272 { 273 return (addr & ~(Addr)(blkSize-1)); 274 } --- 66 unchanged lines hidden --- |