From 79c9ae0306f227eb1bb7be2ff31ac912bf4fd4ca Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 19 Sep 2019 14:54:04 +0100 Subject: [PATCH] sim: Mark System::getThreadContext method as const Change-Id: Ic0ce1b098cfe0ce6ea37986a8a55002a5c18a66c Signed-off-by: Giacomo Travaglini Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21304 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/sim/system.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 threadContexts; const bool multiThread; - ThreadContext *getThreadContext(ContextID tid) + ThreadContext *getThreadContext(ContextID tid) const { return threadContexts[tid]; } -- 2.30.2