From: Gabe Black Date: Tue, 12 Jan 2021 07:54:43 +0000 (-0800) Subject: base: Remove the curTick prototype from base/statistics.hh. X-Git-Tag: develop-gem5-snapshot~293 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e19fbe431af4aeae0d2f38b1ccb4b9156775e124;p=gem5.git base: Remove the curTick prototype from base/statistics.hh. This prototype might convince the compiler that it should refer to curTick indirectly through the linker, but curTick is inline (and making it not has very high overhead), so there's a decent chance no non-inline version will be emitted. Change-Id: Iab5aacb145d4a974bc1bc0abdf7275c40fbb9c38 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38997 Reviewed-by: Daniel Carvalho Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/base/statistics.hh b/src/base/statistics.hh index 1ad64e985..7115b88f3 100644 --- a/src/base/statistics.hh +++ b/src/base/statistics.hh @@ -81,9 +81,8 @@ #include "base/intmath.hh" #include "base/str.hh" #include "base/types.hh" - -/** The current simulated tick. */ -extern Tick curTick(); +// For curTick(). +#include "sim/core.hh" /* A namespace for all of the Statistics */ namespace Stats {