base.cc (11722:f15f02d8c79e) | base.cc (11893:3033b3e6a32a) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2013 ARM Limited | 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 39 unchanged lines hidden (view full) --- 50 51#include "cpu/smt.hh" //maxThreadsPerCPU 52#include "mem/cache/base.hh" 53#include "sim/sim_exit.hh" 54 55using namespace std; 56 57BaseTags::BaseTags(const Params *p) | 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 39 unchanged lines hidden (view full) --- 50 51#include "cpu/smt.hh" //maxThreadsPerCPU 52#include "mem/cache/base.hh" 53#include "sim/sim_exit.hh" 54 55using namespace std; 56 57BaseTags::BaseTags(const Params *p) |
58 : ClockedObject(p), blkSize(p->block_size), size(p->size), | 58 : ClockedObject(p), blkSize(p->block_size), blkMask(blkSize - 1), 59 size(p->size), |
59 lookupLatency(p->tag_latency), 60 accessLatency(p->sequential_access ? 61 p->tag_latency + p->data_latency : 62 std::max(p->tag_latency, p->data_latency)), 63 cache(nullptr), warmupBound(0), 64 warmedUp(false), numBlocks(0) 65{ 66} --- 105 unchanged lines hidden --- | 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), 65 warmedUp(false), numBlocks(0) 66{ 67} --- 105 unchanged lines hidden --- |