realview64-switcheroo-timing.py revision 11837:17b37f38944a
16757SAli.Saidi@ARM.com# Copyright (c) 2012 ARM Limited
27650SAli.Saidi@ARM.com# All rights reserved.
36757SAli.Saidi@ARM.com#
46757SAli.Saidi@ARM.com# The license below extends only to copyright in the software and shall
57111Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
67111Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
77111Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
87111Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
97111Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
107111Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
117111Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
127111Sgblack@eecs.umich.edu#
137111Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
146757SAli.Saidi@ARM.com# modification, are permitted provided that the following conditions are
156757SAli.Saidi@ARM.com# met: redistributions of source code must retain the above copyright
166757SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer;
176757SAli.Saidi@ARM.com# redistributions in binary form must reproduce the above copyright
186757SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the
196757SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution;
206757SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its
216757SAli.Saidi@ARM.com# contributors may be used to endorse or promote products derived from
226757SAli.Saidi@ARM.com# this software without specific prior written permission.
236757SAli.Saidi@ARM.com#
246757SAli.Saidi@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
256757SAli.Saidi@ARM.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
266757SAli.Saidi@ARM.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
276757SAli.Saidi@ARM.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
286757SAli.Saidi@ARM.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
296757SAli.Saidi@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
306757SAli.Saidi@ARM.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
316757SAli.Saidi@ARM.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
326757SAli.Saidi@ARM.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
336757SAli.Saidi@ARM.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
346757SAli.Saidi@ARM.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
356757SAli.Saidi@ARM.com#
366757SAli.Saidi@ARM.com# Authors: Andreas Sandberg
376757SAli.Saidi@ARM.com
386757SAli.Saidi@ARM.comfrom m5.objects import *
396735Sgblack@eecs.umich.edufrom arm_generic import *
406757SAli.Saidi@ARM.comimport switcheroo
416757SAli.Saidi@ARM.com
427707Sgblack@eecs.umich.eduroot = LinuxArmFSSwitcheroo(
436757SAli.Saidi@ARM.com    machine_type='VExpress_EMM64',
446757SAli.Saidi@ARM.com    mem_class=DDR3_1600_8x8,
456735Sgblack@eecs.umich.edu    cpu_classes=(TimingSimpleCPU, TimingSimpleCPU)
467693SAli.Saidi@ARM.com    ).create_root()
477693SAli.Saidi@ARM.com
488706Sandreas.hansson@arm.com# Setup a custom test method that uses the switcheroo tester that
497693SAli.Saidi@ARM.com# switches between CPU models.
506735Sgblack@eecs.umich.edurun_test = switcheroo.run_test
517749SAli.Saidi@ARM.com