base_set_assoc.cc (13378:038ea95fd793) base_set_assoc.cc (13419:aaadcfae091a)
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::tagsInit(BaseCache* cache)
66BaseSetAssoc::tagsInit()
67{
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];
75
76 // Link block to indexing policy
77 indexingPolicy->setEntry(blk, blk_index);
78

--- 28 unchanged lines hidden ---
68 // Initialize all blocks
69 for (unsigned blk_index = 0; blk_index < numBlocks; blk_index++) {
70 // Locate next cache block
71 CacheBlk* blk = &blks[blk_index];
72
73 // Link block to indexing policy
74 indexingPolicy->setEntry(blk, blk_index);
75

--- 28 unchanged lines hidden ---