pseudo_inst.cc (11793:ef606668d247) pseudo_inst.cc (12145:9079b93ac9d4)
1/*
1/*
2 * Copyright (c) 2010-2012, 2015 ARM Limited
2 * Copyright (c) 2010-2012, 2015, 2017 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

280 return curTick() / SimClock::Int::ns;
281}
282
283void
284wakeCPU(ThreadContext *tc, uint64_t cpuid)
285{
286 DPRINTF(PseudoInst, "PseudoInst::wakeCPU(%i)\n", cpuid);
287 System *sys = tc->getSystemPtr();
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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

280 return curTick() / SimClock::Int::ns;
281}
282
283void
284wakeCPU(ThreadContext *tc, uint64_t cpuid)
285{
286 DPRINTF(PseudoInst, "PseudoInst::wakeCPU(%i)\n", cpuid);
287 System *sys = tc->getSystemPtr();
288
289 if (sys->numContexts() <= cpuid) {
290 warn("PseudoInst::wakeCPU(%i), cpuid greater than number of contexts"
291 "(%i)\n",cpuid, sys->numContexts());
292 return;
293 }
294
288 ThreadContext *other_tc = sys->threadContexts[cpuid];
289 if (other_tc->status() == ThreadContext::Suspended)
290 other_tc->activate();
291}
292
293void
294m5exit(ThreadContext *tc, Tick delay)
295{

--- 415 unchanged lines hidden ---
295 ThreadContext *other_tc = sys->threadContexts[cpuid];
296 if (other_tc->status() == ThreadContext::Suspended)
297 other_tc->activate();
298}
299
300void
301m5exit(ThreadContext *tc, Tick delay)
302{

--- 415 unchanged lines hidden ---