simple_mem.cc (10745:791e4619919d) | simple_mem.cc (10910:32f3d1c454ec) |
---|---|
1/* 2 * Copyright (c) 2010-2013 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 --- 232 unchanged lines hidden (view full) --- 241 // also track our internal queue 242 if (!packetQueue.empty()) { 243 count += 1; 244 drainManager = dm; 245 DPRINTF(Drain, "SimpleMemory Queue has requests, waiting to drain\n"); 246 } 247 248 if (count) | 1/* 2 * Copyright (c) 2010-2013 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 --- 232 unchanged lines hidden (view full) --- 241 // also track our internal queue 242 if (!packetQueue.empty()) { 243 count += 1; 244 drainManager = dm; 245 DPRINTF(Drain, "SimpleMemory Queue has requests, waiting to drain\n"); 246 } 247 248 if (count) |
249 setDrainState(Drainable::Draining); | 249 setDrainState(DrainState::Draining); |
250 else | 250 else |
251 setDrainState(Drainable::Drained); | 251 setDrainState(DrainState::Drained); |
252 return count; 253} 254 255SimpleMemory::MemoryPort::MemoryPort(const std::string& _name, 256 SimpleMemory& _memory) 257 : SlavePort(_name, &_memory), memory(_memory) 258{ } 259 --- 37 unchanged lines hidden --- | 252 return count; 253} 254 255SimpleMemory::MemoryPort::MemoryPort(const std::string& _name, 256 SimpleMemory& _memory) 257 : SlavePort(_name, &_memory), memory(_memory) 258{ } 259 --- 37 unchanged lines hidden --- |