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/base_cpu.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/base_cpu.hh')
-rw-r--r-- | cpu/base_cpu.hh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/cpu/base_cpu.hh b/cpu/base_cpu.hh index 143fc9662..af1f34b67 100644 --- a/cpu/base_cpu.hh +++ b/cpu/base_cpu.hh @@ -73,7 +73,20 @@ class BaseCPU : public SimObject std::vector<ExecContext *> execContexts; public: - virtual void execCtxStatusChg(int thread_num) {} + + /// Notify the CPU that the indicated context is now active. The + /// delay parameter indicates the number of ticks to wait before + /// executing (typically 0 or 1). + virtual void activateContext(int thread_num, int delay) {} + + /// Notify the CPU that the indicated context is now suspended. + virtual void suspendContext(int thread_num) {} + + /// Notify the CPU that the indicated context is now deallocated. + virtual void deallocateContext(int thread_num) {} + + /// Notify the CPU that the indicated context is now halted. + virtual void haltContext(int thread_num) {} public: |