diff options
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r-- | src/cpu/base.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh index 540c72833..515f6a5a2 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -261,6 +261,9 @@ class BaseCPU : public MemObject /// Given a thread num get tho thread context for it virtual ThreadContext *getContext(int tn) { return threadContexts[tn]; } + /// Get the number of thread contexts available + unsigned numContexts() { return threadContexts.size(); } + public: typedef BaseCPUParams Params; const Params *params() const |