summaryrefslogtreecommitdiff
path: root/src/sim/serialize.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2007-02-17 22:52:32 -0800
committerNathan Binkert <binkertn@umich.edu>2007-02-17 22:52:32 -0800
commite94103397c58ffe05d4c5c7f536edabfb1d6861b (patch)
tree9109a4c2f22b3681c48ab6047c3223e70297db12 /src/sim/serialize.cc
parent01f32efa4b3c25ad6323ec3e76d756b442a8f419 (diff)
downloadgem5-e94103397c58ffe05d4c5c7f536edabfb1d6861b.tar.xz
Get rid of the Statistics and Statreset ParamContexts, and
expose all of the relevant functionality to python. Clean up the mysql code while we're at it. --HG-- extra : convert_revision : 5b711202a5a452b8875ebefb136a156b65c24279
Diffstat (limited to 'src/sim/serialize.cc')
-rw-r--r--src/sim/serialize.cc33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/sim/serialize.cc b/src/sim/serialize.cc
index 1ff16976d..d32bb1142 100644
--- a/src/sim/serialize.cc
+++ b/src/sim/serialize.cc
@@ -407,36 +407,3 @@ Checkpoint::sectionExists(const std::string &section)
{
return db->sectionExists(section);
}
-
-/** Hacked stat reset event */
-
-class StatresetParamContext : public ParamContext
-{
- public:
- StatresetParamContext(const string &section);
- ~StatresetParamContext();
- void startup();
-};
-
-StatresetParamContext statParams("statsreset");
-
-Param<Tick> reset_cycle(&statParams, "reset_cycle",
- "Cycle to reset stats on", 0);
-
-StatresetParamContext::StatresetParamContext(const string &section)
- : ParamContext(section)
-{ }
-
-StatresetParamContext::~StatresetParamContext()
-{
-}
-
-void
-StatresetParamContext::startup()
-{
- if (reset_cycle > 0) {
- Stats::SetupEvent(Stats::Reset, curTick + reset_cycle, 0);
- cprintf("Stats reset event scheduled for %lli\n",
- curTick + reset_cycle);
- }
-}