summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-06-14 23:24:46 -0700
committerNathan Binkert <nate@binkert.org>2010-06-14 23:24:46 -0700
commit54d813adcaf6d5eda4040c20bae1706b0a78324b (patch)
treef0a6062071673958771183320e5ddd7a8deca42d /src/sim
parent420402c0a314f515ff1e84d6c6da4892e006c92e (diff)
downloadgem5-54d813adcaf6d5eda4040c20bae1706b0a78324b.tar.xz
stats: get rid of the never-really-used event stuff
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/faults.cc1
-rw-r--r--src/sim/sim_object.cc7
-rw-r--r--src/sim/sim_object.hh3
3 files changed, 0 insertions, 11 deletions
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__