1/* 2 * Copyright (c) 2010-2013, 2015 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 --- 34 unchanged lines hidden (view full) --- 43 */ 44 45#include "mem/simple_mem.hh" 46 47#include "base/random.hh" 48#include "base/trace.hh" 49#include "debug/Drain.hh" 50 |
51SimpleMemory::SimpleMemory(const SimpleMemoryParams* p) : 52 AbstractMemory(p), 53 port(name() + ".port", *this), latency(p->latency), 54 latency_var(p->latency_var), bandwidth(p->bandwidth), isBusy(false), 55 retryReq(false), retryResp(false), 56 releaseEvent([this]{ release(); }, name()), 57 dequeueEvent([this]{ dequeue(); }, name()) 58{ --- 238 unchanged lines hidden --- |