From b9d8700a38ccecfbe97c152bc9fc3b7c3b09e9a2 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 25 Aug 2017 17:39:18 -0700 Subject: stats: Get rid of some kernel stats related cruft. The kernel stat mechanism should really be refactored and moved somewhere else, but in the mean time there's some old cruft that can be cleared away. Change-Id: I21e725de590dda0d20bf3bc675bbe976c7b1bd86 Reviewed-on: https://gem5-review.googlesource.com/4600 Reviewed-by: Jason Lowe-Power Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- src/kern/kernel_stats.cc | 2 +- src/kern/kernel_stats.hh | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src/kern') diff --git a/src/kern/kernel_stats.cc b/src/kern/kernel_stats.cc index f7f57af29..37677c1fc 100644 --- a/src/kern/kernel_stats.cc +++ b/src/kern/kernel_stats.cc @@ -41,7 +41,7 @@ using namespace Stats; namespace Kernel { -Statistics::Statistics(System *system) +Statistics::Statistics() : iplLast(0), iplLastTick(0) { } diff --git a/src/kern/kernel_stats.hh b/src/kern/kernel_stats.hh index efaf70611..d516baaec 100644 --- a/src/kern/kernel_stats.hh +++ b/src/kern/kernel_stats.hh @@ -34,13 +34,10 @@ #include -#include "config/the_isa.hh" #include "sim/serialize.hh" #include "sim/stats.hh" // What does kernel stats expect is included? -class System; - namespace Kernel { class Statistics : public Serializable @@ -63,7 +60,7 @@ class Statistics : public Serializable Tick iplLastTick; public: - Statistics(System *system); + Statistics(); virtual ~Statistics() {} const std::string name() const { return myname; } -- cgit v1.2.3