cpu.cc (11429:cf5af0cc3be4) | cpu.cc (11499:16ceeed96e1c) |
---|---|
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 --- 213 unchanged lines hidden (view full) --- 222{ 223 DPRINTF(Drain, "MinorCPU drain done\n"); 224 Drainable::signalDrainDone(); 225} 226 227void 228MinorCPU::drainResume() 229{ | 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 --- 213 unchanged lines hidden (view full) --- 222{ 223 DPRINTF(Drain, "MinorCPU drain done\n"); 224 Drainable::signalDrainDone(); 225} 226 227void 228MinorCPU::drainResume() 229{ |
230 /* When taking over from another cpu make sure lastStopped 231 * is reset since it might have not been defined previously 232 * and might lead to a stats corruption */ 233 pipeline->resetLastStopped(); 234 |
|
230 if (switchedOut()) { 231 DPRINTF(Drain, "drainResume while switched out. Ignoring\n"); 232 return; 233 } 234 235 DPRINTF(Drain, "MinorCPU drainResume\n"); 236 237 if (!system->isTimingMode()) { --- 25 unchanged lines hidden (view full) --- 263} 264 265void 266MinorCPU::takeOverFrom(BaseCPU *old_cpu) 267{ 268 DPRINTF(MinorCPU, "MinorCPU takeOverFrom\n"); 269 270 BaseCPU::takeOverFrom(old_cpu); | 235 if (switchedOut()) { 236 DPRINTF(Drain, "drainResume while switched out. Ignoring\n"); 237 return; 238 } 239 240 DPRINTF(Drain, "MinorCPU drainResume\n"); 241 242 if (!system->isTimingMode()) { --- 25 unchanged lines hidden (view full) --- 268} 269 270void 271MinorCPU::takeOverFrom(BaseCPU *old_cpu) 272{ 273 DPRINTF(MinorCPU, "MinorCPU takeOverFrom\n"); 274 275 BaseCPU::takeOverFrom(old_cpu); |
271 272 /* Don't think I need to do anything here */ | |
273} 274 275void 276MinorCPU::activateContext(ThreadID thread_id) 277{ 278 DPRINTF(MinorCPU, "ActivateContext thread: %d", thread_id); 279 280 /* Do some cycle accounting. lastStopped is reset to stop the --- 69 unchanged lines hidden --- | 276} 277 278void 279MinorCPU::activateContext(ThreadID thread_id) 280{ 281 DPRINTF(MinorCPU, "ActivateContext thread: %d", thread_id); 282 283 /* Do some cycle accounting. lastStopped is reset to stop the --- 69 unchanged lines hidden --- |