diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2003-12-10 17:47:28 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2003-12-10 17:47:28 -0800 |
commit | 4ce6118fdac16cfdc0d945e8793ace3379779288 (patch) | |
tree | 73d1b9ca10a321d4b022177396262a9386a36f42 /cpu/exec_context.hh | |
parent | db6038937d126ec11e7745a1182c69f79b92f41f (diff) | |
download | gem5-4ce6118fdac16cfdc0d945e8793ace3379779288.tar.xz |
Factor ExecContext::setStatus(), BaseCPU::execCtxStatusChange(),
and SimpleCPU::setStatus() into separate functions. For example,
setStatus(Active) is now activate().
--HG--
extra : convert_revision : 4392e07caf6c918db0b535f613175109681686fe
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: |