pseudo_inst.cc (10553:c1ad57c53a36) pseudo_inst.cc (11058:d0934b57735a)
1/*
2 * Copyright (c) 2010-2012 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

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

275quiesceNs(ThreadContext *tc, uint64_t ns)
276{
277 DPRINTF(PseudoInst, "PseudoInst::quiesceNs(%i)\n", ns);
278 if (!FullSystem)
279 panicFsOnlyPseudoInst("quiesceNs");
280
281 BaseCPU *cpu = tc->getCpuPtr();
282
1/*
2 * Copyright (c) 2010-2012 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

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

275quiesceNs(ThreadContext *tc, uint64_t ns)
276{
277 DPRINTF(PseudoInst, "PseudoInst::quiesceNs(%i)\n", ns);
278 if (!FullSystem)
279 panicFsOnlyPseudoInst("quiesceNs");
280
281 BaseCPU *cpu = tc->getCpuPtr();
282
283 if (!cpu->params()->do_quiesce || ns == 0)
283 if (!cpu->params()->do_quiesce)
284 return;
285
286 EndQuiesceEvent *quiesceEvent = tc->getQuiesceEvent();
287
288 Tick resume = curTick() + SimClock::Int::ns * ns;
289
290 cpu->reschedule(quiesceEvent, resume, true);
291

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

301quiesceCycles(ThreadContext *tc, uint64_t cycles)
302{
303 DPRINTF(PseudoInst, "PseudoInst::quiesceCycles(%i)\n", cycles);
304 if (!FullSystem)
305 panicFsOnlyPseudoInst("quiesceCycles");
306
307 BaseCPU *cpu = tc->getCpuPtr();
308
284 return;
285
286 EndQuiesceEvent *quiesceEvent = tc->getQuiesceEvent();
287
288 Tick resume = curTick() + SimClock::Int::ns * ns;
289
290 cpu->reschedule(quiesceEvent, resume, true);
291

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

301quiesceCycles(ThreadContext *tc, uint64_t cycles)
302{
303 DPRINTF(PseudoInst, "PseudoInst::quiesceCycles(%i)\n", cycles);
304 if (!FullSystem)
305 panicFsOnlyPseudoInst("quiesceCycles");
306
307 BaseCPU *cpu = tc->getCpuPtr();
308
309 if (!cpu->params()->do_quiesce || cycles == 0)
309 if (!cpu->params()->do_quiesce)
310 return;
311
312 EndQuiesceEvent *quiesceEvent = tc->getQuiesceEvent();
313
314 Tick resume = cpu->clockEdge(Cycles(cycles));
315
316 cpu->reschedule(quiesceEvent, resume, true);
317

--- 403 unchanged lines hidden ---
310 return;
311
312 EndQuiesceEvent *quiesceEvent = tc->getQuiesceEvent();
313
314 Tick resume = cpu->clockEdge(Cycles(cycles));
315
316 cpu->reschedule(quiesceEvent, resume, true);
317

--- 403 unchanged lines hidden ---