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