simple_mem.cc (12084:5a3769ff3d55) | simple_mem.cc (12637:bfc3cb9c7e6c) |
---|---|
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 | 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 |
51using namespace std; 52 | |
53SimpleMemory::SimpleMemory(const SimpleMemoryParams* p) : 54 AbstractMemory(p), 55 port(name() + ".port", *this), latency(p->latency), 56 latency_var(p->latency_var), bandwidth(p->bandwidth), isBusy(false), 57 retryReq(false), retryResp(false), 58 releaseEvent([this]{ release(); }, name()), 59 dequeueEvent([this]{ dequeue(); }, name()) 60{ --- 238 unchanged lines hidden --- | 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 --- |