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/configs/alpha_generic.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/configs/alpha_generic.py')
-rw-r--r-- | tests/configs/alpha_generic.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/configs/alpha_generic.py b/tests/configs/alpha_generic.py index 429f4faba..a4ebba54d 100644 --- a/tests/configs/alpha_generic.py +++ b/tests/configs/alpha_generic.py @@ -91,3 +91,10 @@ class LinuxAlphaFSSystemUniprocessor(LinuxAlphaSystemBuilder, def __init__(self, **kwargs): BaseFSSystemUniprocessor.__init__(self, **kwargs) LinuxAlphaSystemBuilder.__init__(self) + +class LinuxAlphaFSSwitcheroo(LinuxAlphaSystemBuilder, BaseFSSwitcheroo): + """Uniprocessor Alpha system prepared for CPU switching""" + + def __init__(self, **kwargs): + BaseFSSwitcheroo.__init__(self, **kwargs) + LinuxAlphaSystemBuilder.__init__(self) |