sim: move iterating over SimObjects into Python.

This commit is contained in:
Steve Reinhardt
2010-08-17 05:08:50 -07:00
parent c2cce96a0b
commit 5ea906ba16
9 changed files with 42 additions and 167 deletions

View File

@@ -78,10 +78,6 @@ Tick curTick;
void serializeAll(const std::string &cpt_dir);
void unserializeAll(const std::string &cpt_dir);
void initAll();
void regAllStats();
void startupAll();
bool want_warn, warn_verbose;
bool want_info, info_verbose;
bool want_hack, hack_verbose;

View File

@@ -45,17 +45,6 @@ SimObject *resolveSimObject(const std::string &name);
int connectPorts(SimObject *o1, const std::string &name1, int i1,
SimObject *o2, const std::string &name2, int i2);
inline void
initAll()
{
SimObject::initAll();
}
inline void
regAllStats()
{
SimObject::regAllStats();
}
inline void
serializeAll(const std::string &cpt_dir)
@@ -68,9 +57,3 @@ unserializeAll(const std::string &cpt_dir)
{
Serializable::unserializeAll(cpt_dir);
}
inline void
startupAll()
{
SimObject::startupAll();
}

View File

@@ -50,6 +50,12 @@ class SimObject {
Drained
};
void init();
void regStats();
void regFormulas();
void resetStats();
void startup();
unsigned int drain(Event *drain_event);
void resume();
void switchOut();