dramsim2.cc (10721:3e6a3eaac71b) | dramsim2.cc (10910:32f3d1c454ec) |
---|---|
1/* 2 * Copyright (c) 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 --- 348 unchanged lines hidden (view full) --- 357} 358 359unsigned int 360DRAMSim2::drain(DrainManager* dm) 361{ 362 // check our outstanding reads and writes and if any they need to 363 // drain 364 if (nbrOutstanding() != 0) { | 1/* 2 * Copyright (c) 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 --- 348 unchanged lines hidden (view full) --- 357} 358 359unsigned int 360DRAMSim2::drain(DrainManager* dm) 361{ 362 // check our outstanding reads and writes and if any they need to 363 // drain 364 if (nbrOutstanding() != 0) { |
365 setDrainState(Drainable::Draining); | 365 setDrainState(DrainState::Draining); |
366 drainManager = dm; 367 return 1; 368 } else { | 366 drainManager = dm; 367 return 1; 368 } else { |
369 setDrainState(Drainable::Drained); | 369 setDrainState(DrainState::Drained); |
370 return 0; 371 } 372} 373 374DRAMSim2::MemoryPort::MemoryPort(const std::string& _name, 375 DRAMSim2& _memory) 376 : SlavePort(_name, &_memory), memory(_memory) 377{ } --- 39 unchanged lines hidden --- | 370 return 0; 371 } 372} 373 374DRAMSim2::MemoryPort::MemoryPort(const std::string& _name, 375 DRAMSim2& _memory) 376 : SlavePort(_name, &_memory), memory(_memory) 377{ } --- 39 unchanged lines hidden --- |