base.cc (12548:285f1792a2da) | base.cc (12629:c17d4dc2379e) |
---|---|
1/* 2 * Copyright (c) 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 --- 49 unchanged lines hidden (view full) --- 58 : ClockedObject(p), blkSize(p->block_size), blkMask(blkSize - 1), 59 size(p->size), 60 lookupLatency(p->tag_latency), 61 accessLatency(p->sequential_access ? 62 p->tag_latency + p->data_latency : 63 std::max(p->tag_latency, p->data_latency)), 64 cache(nullptr), 65 warmupBound((p->warmup_percentage/100.0) * (p->size / p->block_size)), | 1/* 2 * Copyright (c) 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 --- 49 unchanged lines hidden (view full) --- 58 : ClockedObject(p), blkSize(p->block_size), blkMask(blkSize - 1), 59 size(p->size), 60 lookupLatency(p->tag_latency), 61 accessLatency(p->sequential_access ? 62 p->tag_latency + p->data_latency : 63 std::max(p->tag_latency, p->data_latency)), 64 cache(nullptr), 65 warmupBound((p->warmup_percentage/100.0) * (p->size / p->block_size)), |
66 warmedUp(false), numBlocks(p->size / p->block_size) | 66 warmedUp(false), numBlocks(p->size / p->block_size), 67 dataBlks(new uint8_t[p->size]) // Allocate data storage in one big chunk |
67{ 68} 69 70void 71BaseTags::setCache(BaseCache *_cache) 72{ 73 assert(!cache); 74 cache = _cache; --- 99 unchanged lines hidden --- | 68{ 69} 70 71void 72BaseTags::setCache(BaseCache *_cache) 73{ 74 assert(!cache); 75 cache = _cache; --- 99 unchanged lines hidden --- |