base.cc (11793:ef606668d247) | base.cc (12680:91f4d6668b4f) |
---|---|
1/* 2 * Copyright (c) 2013-2014 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 --- 44 unchanged lines hidden (view full) --- 53#include "base/intmath.hh" 54#include "mem/cache/base.hh" 55#include "sim/system.hh" 56 57BasePrefetcher::BasePrefetcher(const BasePrefetcherParams *p) 58 : ClockedObject(p), cache(nullptr), blkSize(0), lBlkSize(0), 59 system(p->sys), onMiss(p->on_miss), onRead(p->on_read), 60 onWrite(p->on_write), onData(p->on_data), onInst(p->on_inst), | 1/* 2 * Copyright (c) 2013-2014 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 --- 44 unchanged lines hidden (view full) --- 53#include "base/intmath.hh" 54#include "mem/cache/base.hh" 55#include "sim/system.hh" 56 57BasePrefetcher::BasePrefetcher(const BasePrefetcherParams *p) 58 : ClockedObject(p), cache(nullptr), blkSize(0), lBlkSize(0), 59 system(p->sys), onMiss(p->on_miss), onRead(p->on_read), 60 onWrite(p->on_write), onData(p->on_data), onInst(p->on_inst), |
61 masterId(system->getMasterId(name())), | 61 masterId(system->getMasterId(this)), |
62 pageBytes(system->getPageBytes()) 63{ 64} 65 66void 67BasePrefetcher::setCache(BaseCache *_cache) 68{ 69 assert(!cache); --- 95 unchanged lines hidden --- | 62 pageBytes(system->getPageBytes()) 63{ 64} 65 66void 67BasePrefetcher::setCache(BaseCache *_cache) 68{ 69 assert(!cache); --- 95 unchanged lines hidden --- |