summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2019-09-19 14:54:04 +0100
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-10-02 15:56:42 +0000
commit79c9ae0306f227eb1bb7be2ff31ac912bf4fd4ca (patch)
tree1bbdf50f3e2e79124b830cfd43b5db009e5aec45
parent2e98297d6218cce54f88706a1860f3bb1cd68b39 (diff)
downloadgem5-79c9ae0306f227eb1bb7be2ff31ac912bf4fd4ca.tar.xz
sim: Mark System::getThreadContext method as const
Change-Id: Ic0ce1b098cfe0ce6ea37986a8a55002a5c18a66c Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21304 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r--src/sim/system.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/system.hh b/src/sim/system.hh
index d7a3b2008..c618e3944 100644
--- a/src/sim/system.hh
+++ b/src/sim/system.hh
@@ -200,7 +200,7 @@ class System : public SimObject
std::vector<ThreadContext *> threadContexts;
const bool multiThread;
- ThreadContext *getThreadContext(ContextID tid)
+ ThreadContext *getThreadContext(ContextID tid) const
{
return threadContexts[tid];
}