base.cc (8883:c92153af04ac) | base.cc (8914:8c3bd7bea667) |
---|---|
1/* 2 * Copyright (c) 2012 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 --- 40 unchanged lines hidden (view full) --- 49#include "cpu/smt.hh" 50#include "debug/Cache.hh" 51#include "mem/cache/base.hh" 52#include "mem/cache/mshr.hh" 53#include "sim/full_system.hh" 54 55using namespace std; 56 | 1/* 2 * Copyright (c) 2012 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 --- 40 unchanged lines hidden (view full) --- 49#include "cpu/smt.hh" 50#include "debug/Cache.hh" 51#include "mem/cache/base.hh" 52#include "mem/cache/mshr.hh" 53#include "sim/full_system.hh" 54 55using namespace std; 56 |
57BaseCache::CacheMasterPort::CacheMasterPort(const std::string &_name, 58 BaseCache *_cache, 59 const std::string &_label) 60 : SimpleTimingPort(_name, _cache, _label) 61{ 62} 63 | |
64BaseCache::CacheSlavePort::CacheSlavePort(const std::string &_name, 65 BaseCache *_cache, 66 const std::string &_label) | 57BaseCache::CacheSlavePort::CacheSlavePort(const std::string &_name, 58 BaseCache *_cache, 59 const std::string &_label) |
67 : SimpleTimingPort(_name, _cache, _label), blocked(false), 68 mustSendRetry(false), sendRetryEvent(this) | 60 : QueuedPort(_name, _cache, queue), queue(*_cache, *this, _label), 61 blocked(false), mustSendRetry(false), sendRetryEvent(this) |
69{ 70} 71 72BaseCache::BaseCache(const Params *p) 73 : MemObject(p), 74 mshrQueue("MSHRs", p->mshrs, 4, MSHRQueue_MSHRs), 75 writeBuffer("write buffer", p->write_buffers, p->mshrs+1000, 76 MSHRQueue_WriteBuffer), --- 672 unchanged lines hidden --- | 62{ 63} 64 65BaseCache::BaseCache(const Params *p) 66 : MemObject(p), 67 mshrQueue("MSHRs", p->mshrs, 4, MSHRQueue_MSHRs), 68 writeBuffer("write buffer", p->write_buffers, p->mshrs+1000, 69 MSHRQueue_WriteBuffer), --- 672 unchanged lines hidden --- |