diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/python/m5/simulate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/m5/simulate.py b/src/python/m5/simulate.py index cbd0fb0d4..7d443b1db 100644 --- a/src/python/m5/simulate.py +++ b/src/python/m5/simulate.py @@ -134,9 +134,6 @@ def instantiate(ckpt_dir=None): # 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 @@ def simulate(*args, **kwargs): # 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 = [] |