base: Remove the curTick prototype from base/statistics.hh.
authorGabe Black <gabe.black@gmail.com>
Tue, 12 Jan 2021 07:54:43 +0000 (23:54 -0800)
committerGabe Black <gabe.black@gmail.com>
Thu, 14 Jan 2021 23:14:37 +0000 (23:14 +0000)
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 <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/statistics.hh

index 1ad64e9859ced7a0438a6168a8f62e751e4531e9..7115b88f30cb16160934283501d1b96201e7de7f 100644 (file)
@@ -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 {