----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviews.m5sim.org/r/26/ -----------------------------------------------------------
(Updated 2010-06-27 22:19:51.672485) Review request for Default. Summary ------- sim: make Python Root object a singleton Enforce that the Python Root SimObject is instantiated only once. The C++ Root object already panics if more than one is created. This change avoids the need to track what the root object is, since it's available from Root._getInstance() (if it exists). It's now redundant to have the user pass the root object to functions like instantiate() (though for backwards compatibility we continue to support this for now with a warning). Diffs (updated) ----- configs/common/Simulation.py 5044bb906d5a configs/example/memtest-ruby.py 5044bb906d5a configs/example/memtest.py 5044bb906d5a configs/example/rubytest.py 5044bb906d5a configs/splash2/cluster.py 5044bb906d5a configs/splash2/run.py 5044bb906d5a src/python/m5/simulate.py 5044bb906d5a src/python/m5/util/__init__.py 5044bb906d5a src/sim/Root.py 5044bb906d5a tests/run.py 5044bb906d5a Diff: http://reviews.m5sim.org/r/26/diff Testing ------- Thanks, Steve _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev