diff options
Diffstat (limited to 'src/cpu/simple/base.hh')
-rw-r--r-- | src/cpu/simple/base.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpu/simple/base.hh b/src/cpu/simple/base.hh index 82f73e5dd..8c162a846 100644 --- a/src/cpu/simple/base.hh +++ b/src/cpu/simple/base.hh @@ -44,6 +44,7 @@ #include "mem/port.hh" #include "mem/request.hh" #include "sim/eventq.hh" +#include "sim/system.hh" // forward declarations #if FULL_SYSTEM @@ -86,6 +87,14 @@ class BaseSimpleCPU : public BaseCPU protected: Trace::InstRecord *traceData; + inline void checkPcEventQueue() { + Addr oldpc; + do { + oldpc = thread->readPC(); + system->pcEventQueue.service(tc); + } while (oldpc != thread->readPC()); + } + public: void post_interrupt(int int_num, int index); |