diff options
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r-- | src/cpu/base.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh index 87f27acca..438c38812 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -465,6 +465,15 @@ class BaseCPU : public MemObject */ void scheduleLoadStop(ThreadID tid, Counter loads, const char *cause); + /** + * Get the number of instructions executed by the specified thread + * on this CPU. Used by Python to control simulation. + * + * @param tid Thread monitor + * @return Number of instructions executed + */ + uint64_t getCurrentInstCount(ThreadID tid); + public: /** * @{ |