realview-switcheroo-timing.py revision 9826:014ff1fbff6d
110206Sandreas.hansson@arm.com# Copyright (c) 2012 ARM Limited
29243SN/A# All rights reserved.
39243SN/A#
49243SN/A# The license below extends only to copyright in the software and shall
59243SN/A# not be construed as granting a license to any other intellectual
69243SN/A# property including but not limited to intellectual property relating
79243SN/A# to a hardware implementation of the functionality of the software
89243SN/A# licensed hereunder.  You may use the software subject to the license
99243SN/A# terms below provided that you ensure that this notice is replicated
109243SN/A# unmodified and in its entirety in all distributions of the software,
119243SN/A# modified or unmodified, in source code or in binary form.
129243SN/A#
139831SN/A# Redistribution and use in source and binary forms, with or without
149831SN/A# modification, are permitted provided that the following conditions are
159831SN/A# met: redistributions of source code must retain the above copyright
169243SN/A# notice, this list of conditions and the following disclaimer;
179243SN/A# redistributions in binary form must reproduce the above copyright
189243SN/A# notice, this list of conditions and the following disclaimer in the
199243SN/A# documentation and/or other materials provided with the distribution;
209243SN/A# neither the name of the copyright holders nor the names of its
219243SN/A# contributors may be used to endorse or promote products derived from
229243SN/A# this software without specific prior written permission.
239243SN/A#
249243SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
259243SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
269243SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
279243SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
289243SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
299243SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
309243SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
319243SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
329243SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
339243SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
349243SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
359243SN/A#
369243SN/A# Authors: Andreas Sandberg
379243SN/A
389243SN/Afrom m5.objects import *
399243SN/Afrom arm_generic import *
409243SN/Aimport switcheroo
419243SN/A
429243SN/Aroot = LinuxArmFSSwitcheroo(
439243SN/A    mem_class=DDR3_1600_x64,
449243SN/A    cpu_classes=(TimingSimpleCPU, TimingSimpleCPU)
459243SN/A    ).create_root()
469243SN/A
479243SN/A# Setup a custom test method that uses the switcheroo tester that
489243SN/A# switches between CPU models.
4910136SN/Arun_test = switcheroo.run_test
5010136SN/A