base.cc (13225:8d1621fc586e) | base.cc (13418:08101e89101e) |
---|---|
1/* 2 * Copyright (c) 2013,2016,2018 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#include "mem/cache/tags/indexing_policies/base.hh" 57#include "mem/request.hh" 58#include "sim/core.hh" 59#include "sim/sim_exit.hh" 60#include "sim/system.hh" 61 62BaseTags::BaseTags(const Params *p) 63 : ClockedObject(p), blkSize(p->block_size), blkMask(blkSize - 1), | 1/* 2 * Copyright (c) 2013,2016,2018 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#include "mem/cache/tags/indexing_policies/base.hh" 57#include "mem/request.hh" 58#include "sim/core.hh" 59#include "sim/sim_exit.hh" 60#include "sim/system.hh" 61 62BaseTags::BaseTags(const Params *p) 63 : ClockedObject(p), blkSize(p->block_size), blkMask(blkSize - 1), |
64 size(p->size), 65 lookupLatency(p->tag_latency), 66 accessLatency(p->sequential_access ? 67 p->tag_latency + p->data_latency : 68 std::max(p->tag_latency, p->data_latency)), | 64 size(p->size), lookupLatency(p->tag_latency), |
69 cache(nullptr), indexingPolicy(p->indexing_policy), 70 warmupBound((p->warmup_percentage/100.0) * (p->size / p->block_size)), 71 warmedUp(false), numBlocks(p->size / p->block_size), 72 dataBlks(new uint8_t[p->size]) // Allocate data storage in one big chunk 73{ 74} 75 76void --- 228 unchanged lines hidden --- | 65 cache(nullptr), indexingPolicy(p->indexing_policy), 66 warmupBound((p->warmup_percentage/100.0) * (p->size / p->block_size)), 67 warmedUp(false), numBlocks(p->size / p->block_size), 68 dataBlks(new uint8_t[p->size]) // Allocate data storage in one big chunk 69{ 70} 71 72void --- 228 unchanged lines hidden --- |