fa_lru.hh (11893:3033b3e6a32a) | fa_lru.hh (12574:22936e2eb2da) |
---|---|
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 --- 228 unchanged lines hidden (view full) --- 237 * @return 0. 238 */ 239 int extractSet(Addr addr) const override 240 { 241 return 0; 242 } 243 244 /** | 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 --- 228 unchanged lines hidden (view full) --- 237 * @return 0. 238 */ 239 int extractSet(Addr addr) const override 240 { 241 return 0; 242 } 243 244 /** |
245 * Regenerate the block address from the tag and the set. 246 * @param tag The tag of the block. 247 * @param set The set the block belongs to. | 245 * Regenerate the block address from the tag. 246 * 247 * @param block The block. |
248 * @return the block address. 249 */ | 248 * @return the block address. 249 */ |
250 Addr regenerateBlkAddr(Addr tag, unsigned set) const override | 250 Addr regenerateBlkAddr(const CacheBlk* blk) const override |
251 { | 251 { |
252 return (tag); | 252 return blk->tag; |
253 } 254 255 /** 256 * @todo Implement as in lru. Currently not used 257 */ 258 virtual std::string print() const override { return ""; } 259 260 /** --- 21 unchanged lines hidden --- | 253 } 254 255 /** 256 * @todo Implement as in lru. Currently not used 257 */ 258 virtual std::string print() const override { return ""; } 259 260 /** --- 21 unchanged lines hidden --- |