thread_context.cc (13865:cca49fc49c57) | thread_context.cc (13905:5cf30883255c) |
---|---|
1/* 2 * Copyright (c) 2012, 2016-2017 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 --- 30 unchanged lines hidden (view full) --- 39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40 * 41 * Authors: Kevin Lim 42 */ 43 44#include "cpu/thread_context.hh" 45 46#include "arch/generic/vec_pred_reg.hh" | 1/* 2 * Copyright (c) 2012, 2016-2017 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 --- 30 unchanged lines hidden (view full) --- 39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40 * 41 * Authors: Kevin Lim 42 */ 43 44#include "cpu/thread_context.hh" 45 46#include "arch/generic/vec_pred_reg.hh" |
47#include "arch/kernel_stats.hh" | |
48#include "base/logging.hh" 49#include "base/trace.hh" 50#include "config/the_isa.hh" 51#include "cpu/base.hh" 52#include "cpu/quiesce_event.hh" 53#include "debug/Context.hh" 54#include "debug/Quiesce.hh" | 47#include "base/logging.hh" 48#include "base/trace.hh" 49#include "config/the_isa.hh" 50#include "cpu/base.hh" 51#include "cpu/quiesce_event.hh" 52#include "debug/Context.hh" 53#include "debug/Quiesce.hh" |
54#include "kern/kernel_stats.hh" |
|
55#include "params/BaseCPU.hh" 56#include "sim/full_system.hh" 57 58void 59ThreadContext::compare(ThreadContext *one, ThreadContext *two) 60{ 61 DPRINTF(Context, "Comparing thread contexts\n"); 62 --- 71 unchanged lines hidden (view full) --- 134{ 135 if (!getCpuPtr()->params()->do_quiesce) 136 return; 137 138 DPRINTF(Quiesce, "%s: quiesce()\n", getCpuPtr()->name()); 139 140 suspend(); 141 if (getKernelStats()) | 55#include "params/BaseCPU.hh" 56#include "sim/full_system.hh" 57 58void 59ThreadContext::compare(ThreadContext *one, ThreadContext *two) 60{ 61 DPRINTF(Context, "Comparing thread contexts\n"); 62 --- 71 unchanged lines hidden (view full) --- 134{ 135 if (!getCpuPtr()->params()->do_quiesce) 136 return; 137 138 DPRINTF(Quiesce, "%s: quiesce()\n", getCpuPtr()->name()); 139 140 suspend(); 141 if (getKernelStats()) |
142 getKernelStats()->quiesce(); | 142 getKernelStats()->quiesce(); |
143} 144 145 146void 147ThreadContext::quiesceTick(Tick resume) 148{ 149 BaseCPU *cpu = getCpuPtr(); 150 --- 131 unchanged lines hidden --- | 143} 144 145 146void 147ThreadContext::quiesceTick(Tick resume) 148{ 149 BaseCPU *cpu = getCpuPtr(); 150 --- 131 unchanged lines hidden --- |