From: Gabe Black Date: Wed, 19 Aug 2020 09:05:59 +0000 (-0700) Subject: arch: Remove the "inline" keyword in ThreadInfo. X-Git-Tag: v20.1.0.0~269 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=345b17af206dad4e1d06c6ce19590c53cb68048c;p=gem5.git arch: Remove the "inline" keyword in ThreadInfo. Methods which are defined inline are already implicitly inline, making that keyword redundant. It's also inconsistently used. Change-Id: If6ec3e94d126ae52d9c2f0d3e8ca27f1ac600650 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32920 Reviewed-by: Andreas Sandberg Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/arch/generic/linux/threadinfo.hh b/src/arch/generic/linux/threadinfo.hh index 73c8173e6..7bbf2dfdb 100644 --- a/src/arch/generic/linux/threadinfo.hh +++ b/src/arch/generic/linux/threadinfo.hh @@ -71,7 +71,7 @@ class ThreadInfo ~ThreadInfo() {} - inline Addr + Addr curThreadInfo() { if (!TheISA::CurThreadInfoImplemented) @@ -89,7 +89,7 @@ class ThreadInfo return sp & ~ULL(0x3fff); } - inline Addr + Addr curTaskInfo(Addr thread_info = 0) { // Note that in Linux 4.10 the thread_info struct will no longer have a