diff options
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: |