diff options
Diffstat (limited to 'cpu/exec_context.hh')
-rw-r--r-- | cpu/exec_context.hh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cpu/exec_context.hh b/cpu/exec_context.hh index 7999e3735..f3c4b8015 100644 --- a/cpu/exec_context.hh +++ b/cpu/exec_context.hh @@ -93,7 +93,18 @@ class ExecContext public: Status status() const { return _status; } - void setStatus(Status new_status); + /// Set the status to Active. Optional delay indicates number of + /// cycles to wait before beginning execution. + void activate(int delay = 1); + + /// Set the status to Suspended. + void suspend(); + + /// Set the status to Unallocated. + void deallocate(); + + /// Set the status to Halted. + void halt(); #ifdef FULL_SYSTEM public: |