cpu.cc (11429:cf5af0cc3be4) cpu.cc (11526:5b81895e5d5e)
1/*
2 * Copyright (c) 2011-2012, 2014 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
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

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

730 // @todo: This is an oddity that is only here to match the stats
731 if (cycles != 0)
732 --cycles;
733 quiesceCycles += cycles;
734
735 lastActivatedCycle = curTick();
736
737 _status = Running;
1/*
2 * Copyright (c) 2011-2012, 2014 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
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

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

730 // @todo: This is an oddity that is only here to match the stats
731 if (cycles != 0)
732 --cycles;
733 quiesceCycles += cycles;
734
735 lastActivatedCycle = curTick();
736
737 _status = Running;
738
739 BaseCPU::activateContext(tid);
738 }
739}
740
741template <class Impl>
742void
743FullO3CPU<Impl>::suspendContext(ThreadID tid)
744{
745 DPRINTF(O3CPU,"[tid: %i]: Suspending Thread Context.\n", tid);

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

750 // If this was the last thread then unschedule the tick event.
751 if (activeThreads.size() == 0) {
752 unscheduleTickEvent();
753 lastRunningCycle = curCycle();
754 _status = Idle;
755 }
756
757 DPRINTF(Quiesce, "Suspending Context\n");
740 }
741}
742
743template <class Impl>
744void
745FullO3CPU<Impl>::suspendContext(ThreadID tid)
746{
747 DPRINTF(O3CPU,"[tid: %i]: Suspending Thread Context.\n", tid);

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

752 // If this was the last thread then unschedule the tick event.
753 if (activeThreads.size() == 0) {
754 unscheduleTickEvent();
755 lastRunningCycle = curCycle();
756 _status = Idle;
757 }
758
759 DPRINTF(Quiesce, "Suspending Context\n");
760
761 BaseCPU::suspendContext(tid);
758}
759
760template <class Impl>
761void
762FullO3CPU<Impl>::haltContext(ThreadID tid)
763{
764 //For now, this is the same as deallocate
765 DPRINTF(O3CPU,"[tid:%i]: Halt Context called. Deallocating", tid);

--- 915 unchanged lines hidden ---
762}
763
764template <class Impl>
765void
766FullO3CPU<Impl>::haltContext(ThreadID tid)
767{
768 //For now, this is the same as deallocate
769 DPRINTF(O3CPU,"[tid:%i]: Halt Context called. Deallocating", tid);

--- 915 unchanged lines hidden ---