Deleted Added
sdiff udiff text old ( 12493:a1cf71a6de73 ) new ( 12513:4dfc54394b5a )
full compact
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

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

68 }
69 if (assoc <= 0) {
70 fatal("associativity must be greater than zero");
71 }
72
73 setShift = floorLog2(blkSize);
74 setMask = numSets - 1;
75 tagShift = setShift + floorLog2(numSets);
76 /** @todo Make warmup percentage a parameter. */
77 warmupBound = numSets * assoc;
78
79 sets = new SetType[numSets];
80 blks = new BlkType[numSets * assoc];
81 // allocate data storage in one big chunk
82 numBlocks = numSets * assoc;
83 dataBlks = new uint8_t[numBlocks * blkSize];
84
85 unsigned blkIndex = 0; // index into blks array

--- 112 unchanged lines hidden ---