summaryrefslogtreecommitdiff
path: root/src/sim/system.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/system.hh')
-rw-r--r--src/sim/system.hh13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/sim/system.hh b/src/sim/system.hh
index 6c63b327f..638e35249 100644
--- a/src/sim/system.hh
+++ b/src/sim/system.hh
@@ -188,6 +188,14 @@ class System : public SimObject, public PCEventScope
unsigned int cacheLineSize() const { return _cacheLineSize; }
std::vector<ThreadContext *> threadContexts;
+ ThreadContext *findFreeContext();
+
+ ThreadContext *
+ getThreadContext(ContextID tid) const
+ {
+ return threadContexts[tid];
+ }
+
const bool multiThread;
using SimObject::schedule;
@@ -195,11 +203,6 @@ class System : public SimObject, public PCEventScope
bool schedule(PCEvent *event) override;
bool remove(PCEvent *event) override;
- ThreadContext *getThreadContext(ContextID tid) const
- {
- return threadContexts[tid];
- }
-
unsigned numContexts() const { return threadContexts.size(); }
/** Return number of running (non-halted) thread contexts in