atomic.cc (11435:0f1b46dde3fa) atomic.cc (11526:5b81895e5d5e)
1/*
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2012-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

--- 233 unchanged lines hidden (view full) ---

242 //Make sure ticks are still on multiples of cycles
243 schedule(tickEvent, clockEdge(Cycles(0)));
244 }
245 _status = BaseSimpleCPU::Running;
246 if (std::find(activeThreads.begin(), activeThreads.end(), thread_num)
247 == activeThreads.end()) {
248 activeThreads.push_back(thread_num);
249 }
1/*
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2012-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

--- 233 unchanged lines hidden (view full) ---

242 //Make sure ticks are still on multiples of cycles
243 schedule(tickEvent, clockEdge(Cycles(0)));
244 }
245 _status = BaseSimpleCPU::Running;
246 if (std::find(activeThreads.begin(), activeThreads.end(), thread_num)
247 == activeThreads.end()) {
248 activeThreads.push_back(thread_num);
249 }
250
251 BaseCPU::activateContext(thread_num);
250}
251
252
253void
254AtomicSimpleCPU::suspendContext(ThreadID thread_num)
255{
256 DPRINTF(SimpleCPU, "SuspendContext %d\n", thread_num);
257

--- 10 unchanged lines hidden (view full) ---

268 if (activeThreads.empty()) {
269 _status = Idle;
270
271 if (tickEvent.scheduled()) {
272 deschedule(tickEvent);
273 }
274 }
275
252}
253
254
255void
256AtomicSimpleCPU::suspendContext(ThreadID thread_num)
257{
258 DPRINTF(SimpleCPU, "SuspendContext %d\n", thread_num);
259

--- 10 unchanged lines hidden (view full) ---

270 if (activeThreads.empty()) {
271 _status = Idle;
272
273 if (tickEvent.scheduled()) {
274 deschedule(tickEvent);
275 }
276 }
277
278 BaseCPU::suspendContext(thread_num);
276}
277
278
279Tick
280AtomicSimpleCPU::AtomicCPUDPort::recvAtomicSnoop(PacketPtr pkt)
281{
282 DPRINTF(SimpleCPU, "received snoop pkt for addr:%#x %s\n", pkt->getAddr(),
283 pkt->cmdString());

--- 418 unchanged lines hidden ---
279}
280
281
282Tick
283AtomicSimpleCPU::AtomicCPUDPort::recvAtomicSnoop(PacketPtr pkt)
284{
285 DPRINTF(SimpleCPU, "received snoop pkt for addr:%#x %s\n", pkt->getAddr(),
286 pkt->cmdString());

--- 418 unchanged lines hidden ---