From e19fbe431af4aeae0d2f38b1ccb4b9156775e124 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 11 Jan 2021 23:54:43 -0800 Subject: [PATCH] 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 --- src/base/statistics.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 { -- 2.30.2