diff options
Diffstat (limited to 'src/cpu/thread_context.hh')
-rw-r--r-- | src/cpu/thread_context.hh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cpu/thread_context.hh b/src/cpu/thread_context.hh index 2544b19c6..f966c0aa1 100644 --- a/src/cpu/thread_context.hh +++ b/src/cpu/thread_context.hh @@ -174,6 +174,12 @@ class ThreadContext /// Set the status to Halted. virtual void halt() = 0; + /// Quiesce thread context + void quiesce(); + + /// Quiesce, suspend, and schedule activate at resume + void quiesceTick(Tick resume); + virtual void dumpFuncProfile() = 0; virtual void takeOverFrom(ThreadContext *old_context) = 0; @@ -367,6 +373,12 @@ class ProxyThreadContext : public ThreadContext /// Set the status to Halted. void halt() { actualTC->halt(); } + /// Quiesce thread context + void quiesce() { actualTC->quiesce(); } + + /// Quiesce, suspend, and schedule activate at resume + void quiesceTick(Tick resume) { actualTC->quiesceTick(resume); } + void dumpFuncProfile() { actualTC->dumpFuncProfile(); } void takeOverFrom(ThreadContext *oldContext) |