changeset bdd606534bdc in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=bdd606534bdc
description:
        sim: reset stats after startup
        Currently statistics are reset after the initial / checkpoint state
        has been loaded. But ruby does some checkpoint processing in its
        startup() function. So the stats need to be reset after the startup()
        function has been called. This patch moves the class to stats.reset()
        to achieve this change in functionality.

diffstat:

 src/python/m5/simulate.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 6e39e3641dd8 -r bdd606534bdc src/python/m5/simulate.py
--- a/src/python/m5/simulate.py Tue Dec 03 10:36:04 2013 -0600
+++ b/src/python/m5/simulate.py Tue Dec 03 10:51:40 2013 -0600
@@ -134,9 +134,6 @@
     # a checkpoint, If so, this call will shift them to be at a valid time.
     updateStatEvents()
 
-    # Reset to put the stats in a consistent state.
-    stats.reset()
-
 need_resume = []
 need_startup = True
 def simulate(*args, **kwargs):
@@ -154,6 +151,9 @@
         # register our C++ exit callback function with Python
         atexit.register(internal.core.doExitCleanup)
 
+        # Reset to put the stats in a consistent state.
+        stats.reset()
+
     for root in need_resume:
         resume(root)
     need_resume = []
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to