base.cc (12155:5dc92ea01323) base.cc (12284:b91c036913da)
1/*
1/*
2 * Copyright (c) 2012, 2015 ARM Limited
2 * Copyright (c) 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

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

579 suspendContext(thread_num);
580}
581
582void
583BaseKvmCPU::haltContext(ThreadID thread_num)
584{
585 // for now, these are equivalent
586 suspendContext(thread_num);
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

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

579 suspendContext(thread_num);
580}
581
582void
583BaseKvmCPU::haltContext(ThreadID thread_num)
584{
585 // for now, these are equivalent
586 suspendContext(thread_num);
587 updateCycleCounters(BaseCPU::CPU_STATE_SLEEP);
587}
588
589ThreadContext *
590BaseKvmCPU::getContext(int tn)
591{
592 assert(tn == 0);
593 syncThreadContext();
594 return tc;

--- 805 unchanged lines hidden ---
588}
589
590ThreadContext *
591BaseKvmCPU::getContext(int tn)
592{
593 assert(tn == 0);
594 syncThreadContext();
595 return tc;

--- 805 unchanged lines hidden ---