base_set_assoc.cc (13219:454ecc63338d) base_set_assoc.cc (13220:78a8391a0f95)
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

--- 57 unchanged lines hidden (view full) ---

66BaseSetAssoc::init(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
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

--- 57 unchanged lines hidden (view full) ---

66BaseSetAssoc::init(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 BlkType* blk = &blks[blk_index];
74 CacheBlk* blk = &blks[blk_index];
75
76 // Link block to indexing policy
77 indexingPolicy->setEntry(blk, blk_index);
78
79 // Associate a data chunk to the block
80 blk->data = &dataBlks[blkSize*blk_index];
81
82 // Associate a replacement data entry to the block

--- 24 unchanged lines hidden ---
75
76 // Link block to indexing policy
77 indexingPolicy->setEntry(blk, blk_index);
78
79 // Associate a data chunk to the block
80 blk->data = &dataBlks[blkSize*blk_index];
81
82 // Associate a replacement data entry to the block

--- 24 unchanged lines hidden ---