if _drain_manager.isDrained():
_drain_manager.resume()
- return _m5.event.simulate(*args, **kwargs)
+ # We flush stdout and stderr before and after the simulation to ensure the
+ # output arrive in order.
+ sys.stdout.flush()
+ sys.stderr.flush()
+ sim_out = _m5.event.simulate(*args, **kwargs)
+ sys.stdout.flush()
+ sys.stderr.flush()
+
+ return sim_out
def drain():
"""Drain the simulator in preparation of a checkpoint or memory mode
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
-50000
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
-776.000061
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
--- Done DRAM low power sweep ---
Fixed params -
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
**** REAL SIMULATION ****
Hello world!
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
**** REAL SIMULATION ****
Begining test of difficult SPARC instructions...
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
Beginning simulation!
Hello world!
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
Beginning simulation!
Exiting @ tick 10944163 because Goodbye hello!! Goodbye hello!! Goodbye hello!! Goodbye hello!! Goodbye hello!! Goodbye hello!! Goo
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
Hello World! From a SimObject!
Beginning simulation!
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000 ticks per second
Beginning simulation!
Exiting @ tick 9981 because Ruby Tester completed
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
Beginning simulation!
Running on 2 cores. with 100 values
-gem5 Simulator System. http://gem5.org
-gem5 is copyrighted software; use the --copyright option for details.
-
-
Global frequency set at 1000000000000 ticks per second
Init done
[Iteration 1, Thread 1] Got lock
class MatchStdout(DerivedGoldStandard):
_file = constants.gem5_simulation_stdout
_default_ignore_regex = [
+ re.compile('^\s+$'), # Remove blank lines.
+ re.compile('^gem5 Simulator System'),
+ re.compile('^gem5 is copyrighted software'),
re.compile('^Redirecting (stdout|stderr) to'),
re.compile('^gem5 version '),
re.compile('^gem5 compiled '),