From 54d813adcaf6d5eda4040c20bae1706b0a78324b Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 14 Jun 2010 23:24:46 -0700 Subject: stats: get rid of the never-really-used event stuff --- src/sim/faults.cc | 1 - src/sim/sim_object.cc | 7 ------- src/sim/sim_object.hh | 3 --- 3 files changed, 11 deletions(-) (limited to 'src/sim') diff --git a/src/sim/faults.cc b/src/sim/faults.cc index 6149a8335..10f0b9a66 100644 --- a/src/sim/faults.cc +++ b/src/sim/faults.cc @@ -46,7 +46,6 @@ void FaultBase::invoke(ThreadContext * tc) void FaultBase::invoke(ThreadContext * tc) { DPRINTF(Fault, "Fault %s at PC: %#x\n", name(), tc->readPC()); - tc->getCpuPtr()->recordEvent(csprintf("Fault %s", name())); assert(!tc->misspeculating()); } diff --git a/src/sim/sim_object.cc b/src/sim/sim_object.cc index f7f539774..c66d766f9 100644 --- a/src/sim/sim_object.cc +++ b/src/sim/sim_object.cc @@ -35,7 +35,6 @@ #include "base/inifile.hh" #include "base/match.hh" #include "base/misc.hh" -#include "base/stats/events.hh" #include "base/trace.hh" #include "base/types.hh" #include "sim/sim_object.hh" @@ -220,12 +219,6 @@ debugObjectBreak(const char *objs) } #endif -void -SimObject::recordEvent(const std::string &stat) -{ - Stats::recordEvent(stat); -} - unsigned int SimObject::drain(Event *drain_event) { diff --git a/src/sim/sim_object.hh b/src/sim/sim_object.hh index d6d08f255..3a96cf8f6 100644 --- a/src/sim/sim_object.hh +++ b/src/sim/sim_object.hh @@ -136,9 +136,6 @@ class SimObject * char* rather than std::string to make it callable from gdb. */ static SimObject *find(const char *name); - - public: - void recordEvent(const std::string &stat); }; #endif // __SIM_OBJECT_HH__ -- cgit v1.2.3