timing.cc (11435:0f1b46dde3fa) | timing.cc (11526:5b81895e5d5e) |
---|---|
1/* 2 * Copyright 2014 Google, Inc. 3 * Copyright (c) 2010-2013,2015 ARM Limited 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 204 unchanged lines hidden (view full) --- 213 // kick things off by initiating the fetch of the next instruction 214 if (!fetchEvent.scheduled()) 215 schedule(fetchEvent, clockEdge(Cycles(0))); 216 217 if (std::find(activeThreads.begin(), activeThreads.end(), thread_num) 218 == activeThreads.end()) { 219 activeThreads.push_back(thread_num); 220 } | 1/* 2 * Copyright 2014 Google, Inc. 3 * Copyright (c) 2010-2013,2015 ARM Limited 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 204 unchanged lines hidden (view full) --- 213 // kick things off by initiating the fetch of the next instruction 214 if (!fetchEvent.scheduled()) 215 schedule(fetchEvent, clockEdge(Cycles(0))); 216 217 if (std::find(activeThreads.begin(), activeThreads.end(), thread_num) 218 == activeThreads.end()) { 219 activeThreads.push_back(thread_num); 220 } |
221 222 BaseCPU::activateContext(thread_num); |
|
221} 222 223 224void 225TimingSimpleCPU::suspendContext(ThreadID thread_num) 226{ 227 DPRINTF(SimpleCPU, "SuspendContext %d\n", thread_num); 228 --- 9 unchanged lines hidden (view full) --- 238 239 if (activeThreads.empty()) { 240 _status = Idle; 241 242 if (fetchEvent.scheduled()) { 243 deschedule(fetchEvent); 244 } 245 } | 223} 224 225 226void 227TimingSimpleCPU::suspendContext(ThreadID thread_num) 228{ 229 DPRINTF(SimpleCPU, "SuspendContext %d\n", thread_num); 230 --- 9 unchanged lines hidden (view full) --- 240 241 if (activeThreads.empty()) { 242 _status = Idle; 243 244 if (fetchEvent.scheduled()) { 245 deschedule(fetchEvent); 246 } 247 } |
248 249 BaseCPU::suspendContext(thread_num); |
|
246} 247 248bool 249TimingSimpleCPU::handleReadPacket(PacketPtr pkt) 250{ 251 SimpleExecContext &t_info = *threadInfo[curThread]; 252 SimpleThread* thread = t_info.thread; 253 --- 749 unchanged lines hidden --- | 250} 251 252bool 253TimingSimpleCPU::handleReadPacket(PacketPtr pkt) 254{ 255 SimpleExecContext &t_info = *threadInfo[curThread]; 256 SimpleThread* thread = t_info.thread; 257 --- 749 unchanged lines hidden --- |