base_set_assoc.cc (13220:78a8391a0f95) | base_set_assoc.cc (13378:038ea95fd793) |
---|---|
1/* 2 * Copyright (c) 2012-2014 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 --- 49 unchanged lines hidden (view full) --- 58{ 59 // Check parameters 60 if (blkSize < 4 || !isPowerOf2(blkSize)) { 61 fatal("Block size must be at least 4 and a power of 2"); 62 } 63} 64 65void | 1/* 2 * Copyright (c) 2012-2014 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 --- 49 unchanged lines hidden (view full) --- 58{ 59 // Check parameters 60 if (blkSize < 4 || !isPowerOf2(blkSize)) { 61 fatal("Block size must be at least 4 and a power of 2"); 62 } 63} 64 65void |
66BaseSetAssoc::init(BaseCache* cache) | 66BaseSetAssoc::tagsInit(BaseCache* cache) |
67{ 68 // Set parent cache 69 setCache(cache); 70 71 // Initialize all blocks 72 for (unsigned blk_index = 0; blk_index < numBlocks; blk_index++) { 73 // Locate next cache block 74 CacheBlk* blk = &blks[blk_index]; --- 32 unchanged lines hidden --- | 67{ 68 // Set parent cache 69 setCache(cache); 70 71 // Initialize all blocks 72 for (unsigned blk_index = 0; blk_index < numBlocks; blk_index++) { 73 // Locate next cache block 74 CacheBlk* blk = &blks[blk_index]; --- 32 unchanged lines hidden --- |