base.cc (11893:3033b3e6a32a) | base.cc (12513:4dfc54394b5a) |
---|---|
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 --- 47 unchanged lines hidden (view full) --- 56 57BaseTags::BaseTags(const Params *p) 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)), | 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 --- 47 unchanged lines hidden (view full) --- 56 57BaseTags::BaseTags(const Params *p) 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), warmupBound(0), | 64 cache(nullptr), 65 warmupBound((p->warmup_percentage/100.0) * (p->size / p->block_size)), |
65 warmedUp(false), numBlocks(0) 66{ 67} 68 69void 70BaseTags::setCache(BaseCache *_cache) 71{ 72 assert(!cache); --- 100 unchanged lines hidden --- | 66 warmedUp(false), numBlocks(0) 67{ 68} 69 70void 71BaseTags::setCache(BaseCache *_cache) 72{ 73 assert(!cache); --- 100 unchanged lines hidden --- |