summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-08-25 17:39:18 -0700
committerGabe Black <gabeblack@google.com>2017-09-11 04:58:38 +0000
commitb9d8700a38ccecfbe97c152bc9fc3b7c3b09e9a2 (patch)
tree4335c0296aa9f02e3f9378fe983165d80f691f5c /src/cpu
parent725b19a8154fa557ab3057f07d7cd3c6d798789d (diff)
downloadgem5-b9d8700a38ccecfbe97c152bc9fc3b7c3b09e9a2.tar.xz
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 <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/cpu')
-rwxr-xr-xsrc/cpu/o3/thread_context_impl.hh2
-rw-r--r--src/cpu/simple_thread.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/o3/thread_context_impl.hh b/src/cpu/o3/thread_context_impl.hh
index 2d109aea9..fdaa35134 100755
--- a/src/cpu/o3/thread_context_impl.hh
+++ b/src/cpu/o3/thread_context_impl.hh
@@ -134,7 +134,7 @@ void
O3ThreadContext<Impl>::regStats(const std::string &name)
{
if (FullSystem) {
- thread->kernelStats = new TheISA::Kernel::Statistics(cpu->system);
+ thread->kernelStats = new TheISA::Kernel::Statistics();
thread->kernelStats->regStats(name + ".kern");
}
}
diff --git a/src/cpu/simple_thread.cc b/src/cpu/simple_thread.cc
index 7c3568cb3..c775983f8 100644
--- a/src/cpu/simple_thread.cc
+++ b/src/cpu/simple_thread.cc
@@ -100,7 +100,7 @@ SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys,
profilePC = 3;
if (use_kernel_stats)
- kernelStats = new TheISA::Kernel::Statistics(system);
+ kernelStats = new TheISA::Kernel::Statistics();
}
SimpleThread::~SimpleThread()