From 78ae8764a9d876d377f3e35de7e412f154402580 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 3 Nov 2004 11:47:55 -0500 Subject: add a new phase to the simulator. Basically the simulator now goes through the following phases. 1) Construct all param contexts 2) Call the checkParams() on each context 3) Build the configuration hierarchy 4) Construct all SimObjects 5) Initialize all SimObjects by calling init() on each one 6) Unserialize the checkpoint 7) Register all statisitcs 8) Check validity of all statistics (after that, no new stats) 9) Reset all stats. 10) Call SimStartup() which calls startup() on all SimObjects, ParamContexts, and any other object deriving from StartupCallback SConscript: no more SimInit() we have SimStartup() now sim/param.hh: Make all params have a startup callback. sim/sim_events.cc: the init callbacks no longer exist. We can simplify code by using startup(). sim/sim_object.hh: Make all SimObjects derive from StartupCallback --HG-- extra : convert_revision : ab81e259eb5510cc597f7bacb2bfb619fb4cc15f --- SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SConscript') diff --git a/SConscript b/SConscript index c8a97810d..a41680ed4 100644 --- a/SConscript +++ b/SConscript @@ -187,8 +187,8 @@ base_sources = Split(''' sim/serialize.cc sim/sim_events.cc sim/sim_exit.cc - sim/sim_init.cc sim/sim_object.cc + sim/startup.cc sim/stat_context.cc sim/stat_control.cc sim/trace_context.cc -- cgit v1.2.3