diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-11-01 04:01:13 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-11-01 04:01:13 -0700 |
commit | 1268e0df1f3d16d804b31005acf8067415771518 (patch) | |
tree | 179079d7d6b441fc3ed06eb3e1aa5eedd0720610 /src/cpu/base.hh | |
parent | eeb85a8575d4bff6bc054bafe295e8758f2d0ded (diff) | |
download | gem5-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.hh | 8 |
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 |