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>
This commit is contained in:
Giacomo Travaglini
2019-09-19 14:54:04 +01:00
parent 2e98297d62
commit 79c9ae0306

View File

@@ -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];
}