diff options
author | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2013-01-07 13:05:52 -0500 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2013-01-07 13:05:52 -0500 |
commit | 5fb00e1df6b2b7d9db472d0c25765263ed1b839f (patch) | |
tree | 2f94ca554d9f92d1fe737ed98931856e43b52f6a /tests/run.py | |
parent | e09e9fa279dec86b171b5e3efeb7057fa0d21cc9 (diff) | |
download | gem5-5fb00e1df6b2b7d9db472d0c25765263ed1b839f.tar.xz |
tests: Add CPU switching tests
This changeset adds a set of tests that stress the CPU switching
code. It adds the following test configurations:
* tsunami-switcheroo-full -- Alpha system (atomic, timing, O3)
* realview-switcheroo-atomic -- ARM system (atomic<->atomic)
* realview-switcheroo-timing -- ARM system (timing<->timing)
* realview-switcheroo-o3 -- ARM system (O3<->O3)
* realview-switcheroo-full -- ARM system (atomic, timing, O3)
Reference data is provided for the 10.linux-boot test case. All of the
tests trigger a CPU switch once per millisecond during the boot
process.
The in-order CPU model was not included in any of the tests as it does
not support CPU handover.
Diffstat (limited to 'tests/run.py')
-rw-r--r-- | tests/run.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/run.py b/tests/run.py index e4474ac5c..ae00be286 100644 --- a/tests/run.py +++ b/tests/run.py @@ -93,6 +93,16 @@ def require_sim_object(name, fatal=False): else: skip_test(msg) +def run_test(root): + """Default run_test implementations. Scripts can override it.""" + + # instantiate configuration + m5.instantiate() + + # simulate until program terminates + exit_event = m5.simulate(maxtick) + print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() + # Since we're in batch mode, dont allow tcp socket connections m5.disableAllListeners() @@ -160,10 +170,4 @@ for sysattr in [ "system", "testsys", "drivesys" ]: if hasattr(root, sysattr): initCPUs(getattr(root, sysattr)) -# instantiate configuration -m5.instantiate() - -# simulate until program terminates -exit_event = m5.simulate(maxtick) - -print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() +run_test(root) |