summaryrefslogtreecommitdiff
path: root/src/cpu/base.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-11-01 04:01:13 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-11-01 04:01:13 -0700
commit1268e0df1f3d16d804b31005acf8067415771518 (patch)
tree179079d7d6b441fc3ed06eb3e1aa5eedd0720610 /src/cpu/base.hh
parenteeb85a8575d4bff6bc054bafe295e8758f2d0ded (diff)
downloadgem5-1268e0df1f3d16d804b31005acf8067415771518.tar.xz
SE/FS: Expose the same methods on the CPUs in SE and FS modes.
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r--src/cpu/base.hh8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh
index 9c75539b1..c15186e84 100644
--- a/src/cpu/base.hh
+++ b/src/cpu/base.hh
@@ -44,6 +44,7 @@
#include "config/the_isa.hh"
#include "mem/mem_object.hh"
#include "sim/eventq.hh"
+#include "sim/full_system.hh"
#include "sim/insttracer.hh"
class BaseCPUParams;
@@ -132,17 +133,14 @@ class BaseCPU : public MemObject
return interrupts;
}
-#if FULL_SYSTEM
virtual void wakeup() = 0;
-#endif
void
postInterrupt(int int_num, int index)
{
interrupts->post(int_num, index);
-#if FULL_SYSTEM
- wakeup();
-#endif
+ if (FullSystem)
+ wakeup();
}
void