thread_context.hh (10190:fb83d025d1c3) thread_context.hh (10407:a9023811bf9e)
1/*
2 * Copyright (c) 2011-2012 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

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

152 Status status() const { return actualTC->status(); }
153
154 void setStatus(Status new_status)
155 {
156 actualTC->setStatus(new_status);
157 checkerTC->setStatus(new_status);
158 }
159
1/*
2 * Copyright (c) 2011-2012 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

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

152 Status status() const { return actualTC->status(); }
153
154 void setStatus(Status new_status)
155 {
156 actualTC->setStatus(new_status);
157 checkerTC->setStatus(new_status);
158 }
159
160 /// Set the status to Active. Optional delay indicates number of
161 /// cycles to wait before beginning execution.
162 void activate(Cycles delay = Cycles(1))
163 { actualTC->activate(delay); }
160 /// Set the status to Active.
161 void activate() { actualTC->activate(); }
164
165 /// Set the status to Suspended.
162
163 /// Set the status to Suspended.
166 void suspend(Cycles delay) { actualTC->suspend(delay); }
164 void suspend() { actualTC->suspend(); }
167
168 /// Set the status to Halted.
165
166 /// Set the status to Halted.
169 void halt(Cycles delay) { actualTC->halt(delay); }
167 void halt() { actualTC->halt(); }
170
171 void dumpFuncProfile() { actualTC->dumpFuncProfile(); }
172
173 void takeOverFrom(ThreadContext *oldContext)
174 {
175 actualTC->takeOverFrom(oldContext);
176 checkerTC->copyState(oldContext);
177 }

--- 168 unchanged lines hidden ---
168
169 void dumpFuncProfile() { actualTC->dumpFuncProfile(); }
170
171 void takeOverFrom(ThreadContext *oldContext)
172 {
173 actualTC->takeOverFrom(oldContext);
174 checkerTC->copyState(oldContext);
175 }

--- 168 unchanged lines hidden ---