thread_context.hh (9023:e9201a7bce59) thread_context.hh (9180:ee8d7a51651d)
1/*
2 * Copyright (c) 2011 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

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

129 virtual Status status() const { return thread->status(); }
130
131 /** Sets this thread's status. */
132 virtual void setStatus(Status new_status)
133 { thread->setStatus(new_status); }
134
135 /** Set the status to Active. Optional delay indicates number of
136 * cycles to wait before beginning execution. */
1/*
2 * Copyright (c) 2011 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

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

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

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

--- 112 unchanged lines hidden ---