cpu.cc (11423:831c7f2f9e39) | cpu.cc (11429:cf5af0cc3be4) |
---|---|
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 --- 273 unchanged lines hidden (view full) --- 282 * to BaseCPU::numCycles */ 283 stats.quiesceCycles += pipeline->cyclesSinceLastStopped(); 284 pipeline->resetLastStopped(); 285 286 /* Wake up the thread, wakeup the pipeline tick */ 287 threads[thread_id]->activate(); 288 wakeupOnEvent(Minor::Pipeline::CPUStageId); 289 pipeline->wakeupFetch(); | 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 --- 273 unchanged lines hidden (view full) --- 282 * to BaseCPU::numCycles */ 283 stats.quiesceCycles += pipeline->cyclesSinceLastStopped(); 284 pipeline->resetLastStopped(); 285 286 /* Wake up the thread, wakeup the pipeline tick */ 287 threads[thread_id]->activate(); 288 wakeupOnEvent(Minor::Pipeline::CPUStageId); 289 pipeline->wakeupFetch(); |
290 291 BaseCPU::activateContext(thread_id); | |
292} 293 294void 295MinorCPU::suspendContext(ThreadID thread_id) 296{ 297 DPRINTF(MinorCPU, "SuspendContext %d\n", thread_id); 298 299 threads[thread_id]->suspend(); | 290} 291 292void 293MinorCPU::suspendContext(ThreadID thread_id) 294{ 295 DPRINTF(MinorCPU, "SuspendContext %d\n", thread_id); 296 297 threads[thread_id]->suspend(); |
300 301 BaseCPU::suspendContext(thread_id); | |
302} 303 304void 305MinorCPU::wakeupOnEvent(unsigned int stage_id) 306{ 307 DPRINTF(Quiesce, "Event wakeup from stage %d\n", stage_id); 308 309 /* Mark that some activity has taken place and start the pipeline */ --- 44 unchanged lines hidden --- | 298} 299 300void 301MinorCPU::wakeupOnEvent(unsigned int stage_id) 302{ 303 DPRINTF(Quiesce, "Event wakeup from stage %d\n", stage_id); 304 305 /* Mark that some activity has taken place and start the pipeline */ --- 44 unchanged lines hidden --- |