cpu.cc (10905:a6ca6831e775) | cpu.cc (10910:32f3d1c454ec) |
---|---|
1/* 2 * Copyright (c) 2012-2014 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 --- 203 unchanged lines hidden (view full) --- 212 213 return ret; 214} 215 216void 217MinorCPU::signalDrainDone() 218{ 219 DPRINTF(Drain, "MinorCPU drain done\n"); | 1/* 2 * Copyright (c) 2012-2014 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 --- 203 unchanged lines hidden (view full) --- 212 213 return ret; 214} 215 216void 217MinorCPU::signalDrainDone() 218{ 219 DPRINTF(Drain, "MinorCPU drain done\n"); |
220 setDrainState(Drainable::Drained); | 220 setDrainState(DrainState::Drained); |
221 drainManager->signalDrainDone(); 222 drainManager = NULL; 223} 224 225void 226MinorCPU::drainResume() 227{ | 221 drainManager->signalDrainDone(); 222 drainManager = NULL; 223} 224 225void 226MinorCPU::drainResume() 227{ |
228 assert(getDrainState() == Drainable::Drained || 229 getDrainState() == Drainable::Running); | 228 assert(getDrainState() == DrainState::Drained || 229 getDrainState() == DrainState::Running); |
230 231 if (switchedOut()) { 232 DPRINTF(Drain, "drainResume while switched out. Ignoring\n"); 233 return; 234 } 235 236 DPRINTF(Drain, "MinorCPU drainResume\n"); 237 238 if (!system->isTimingMode()) { 239 fatal("The Minor CPU requires the memory system to be in " 240 "'timing' mode.\n"); 241 } 242 243 wakeup(); 244 pipeline->drainResume(); 245 | 230 231 if (switchedOut()) { 232 DPRINTF(Drain, "drainResume while switched out. Ignoring\n"); 233 return; 234 } 235 236 DPRINTF(Drain, "MinorCPU drainResume\n"); 237 238 if (!system->isTimingMode()) { 239 fatal("The Minor CPU requires the memory system to be in " 240 "'timing' mode.\n"); 241 } 242 243 wakeup(); 244 pipeline->drainResume(); 245 |
246 setDrainState(Drainable::Running); | 246 setDrainState(DrainState::Running); |
247} 248 249void 250MinorCPU::memWriteback() 251{ 252 DPRINTF(Drain, "MinorCPU memWriteback\n"); 253} 254 --- 97 unchanged lines hidden --- | 247} 248 249void 250MinorCPU::memWriteback() 251{ 252 DPRINTF(Drain, "MinorCPU memWriteback\n"); 253} 254 --- 97 unchanged lines hidden --- |