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), lookupLatency(p->tag_latency), |
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 --- |