summaryrefslogtreecommitdiff
path: root/src/cpu/base.hh
diff options
context:
space:
mode:
authorAkash Bagdia <akash.bagdia@ARM.com>2014-12-09 10:42:08 +0000
committerAkash Bagdia <akash.bagdia@ARM.com>2014-12-09 10:42:08 +0000
commit1c34ee20dfbbd557e394d61825232b10c0f3d37f (patch)
treeb3a6cedf9cb10fec3c0722df7301bc1c5cca1507 /src/cpu/base.hh
parent3ee4957b4930a252c0185a6bc71bdf1c6ebc5ed9 (diff)
downloadgem5-1c34ee20dfbbd557e394d61825232b10c0f3d37f.tar.xz
power: Low-power idle power state for idle CPUs
Add functionality to the BaseCPU that will put the entire CPU into a low-power idle state whenever all threads in it are idle.
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r--src/cpu/base.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh
index 438c38812..f01aa71f3 100644
--- a/src/cpu/base.hh
+++ b/src/cpu/base.hh
@@ -279,10 +279,11 @@ class BaseCPU : public MemObject
Trace::InstTracer * getTracer() { return tracer; }
/// Notify the CPU that the indicated context is now active.
- virtual void activateContext(ThreadID thread_num) {}
+ virtual void activateContext(ThreadID thread_num);
/// Notify the CPU that the indicated context is now suspended.
- virtual void suspendContext(ThreadID thread_num) {}
+ /// Check if possible to enter a lower power state
+ virtual void suspendContext(ThreadID thread_num);
/// Notify the CPU that the indicated context is now halted.
virtual void haltContext(ThreadID thread_num) {}