base.cc (10025:fdf737112e46) | base.cc (10360:919c02740209) |
---|---|
1/* 2 * Copyright (c) 2013 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 --- 42 unchanged lines hidden (view full) --- 51#include "mem/cache/tags/base.hh" 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), | 1/* 2 * Copyright (c) 2013 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 --- 42 unchanged lines hidden (view full) --- 51#include "mem/cache/tags/base.hh" 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), |
59 hitLatency(p->hit_latency) | 59 hitLatency(p->hit_latency), cache(nullptr), warmupBound(0), 60 warmedUp(false), numBlocks(0) |
60{ 61} 62 63void 64BaseTags::setCache(BaseCache *_cache) 65{ | 61{ 62} 63 64void 65BaseTags::setCache(BaseCache *_cache) 66{ |
67 assert(!cache); |
|
66 cache = _cache; 67} 68 69void 70BaseTags::regStats() 71{ 72 using namespace Stats; 73 replacements --- 89 unchanged lines hidden --- | 68 cache = _cache; 69} 70 71void 72BaseTags::regStats() 73{ 74 using namespace Stats; 75 replacements --- 89 unchanged lines hidden --- |