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

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

131
132 /** Returns this thread's status. */
133 virtual Status status() const { return thread->status(); }
134
135 /** Sets this thread's status. */
136 virtual void setStatus(Status new_status)
137 { thread->setStatus(new_status); }
138
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

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

131
132 /** Returns this thread's status. */
133 virtual Status status() const { return thread->status(); }
134
135 /** Sets this thread's status. */
136 virtual void setStatus(Status new_status)
137 { thread->setStatus(new_status); }
138
139 /** Set the status to Active. Optional delay indicates number of
140 * cycles to wait before beginning execution. */
141 virtual void activate(Cycles delay = Cycles(1));
139 /** Set the status to Active. */
140 virtual void activate();
142
143 /** Set the status to Suspended. */
141
142 /** Set the status to Suspended. */
144 virtual void suspend(Cycles delay = Cycles(0));
143 virtual void suspend();
145
146 /** Set the status to Halted. */
144
145 /** Set the status to Halted. */
147 virtual void halt(Cycles delay = Cycles(0));
146 virtual void halt();
148
149 /** Dumps the function profiling information.
150 * @todo: Implement.
151 */
152 virtual void dumpFuncProfile();
153
154 /** Takes over execution of a thread from another CPU. */
155 virtual void takeOverFrom(ThreadContext *old_context);

--- 150 unchanged lines hidden ---
147
148 /** Dumps the function profiling information.
149 * @todo: Implement.
150 */
151 virtual void dumpFuncProfile();
152
153 /** Takes over execution of a thread from another CPU. */
154 virtual void takeOverFrom(ThreadContext *old_context);

--- 150 unchanged lines hidden ---