realview-switcheroo-noncaching-timing.py revision 13012
13534Sgblack@eecs.umich.edu# Copyright (c) 2012 ARM Limited
23534Sgblack@eecs.umich.edu# All rights reserved.
33534Sgblack@eecs.umich.edu#
43534Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall
53534Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
63534Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
73534Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
83534Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
93534Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
103534Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
113534Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
123534Sgblack@eecs.umich.edu#
133534Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
143534Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
153534Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
163534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
173534Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
183534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
193534Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
203534Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
213534Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
223534Sgblack@eecs.umich.edu# this software without specific prior written permission.
233534Sgblack@eecs.umich.edu#
243534Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
253534Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
263534Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
273534Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
283534Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
293534Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
303534Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
313534Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
324202Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
333534Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
344202Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
354486Sbinkertn@umich.edu#
365794Ssaidi@eecs.umich.edu# Authors: Andreas Sandberg
374486Sbinkertn@umich.edu
384486Sbinkertn@umich.edufrom m5.objects import *
394486Sbinkertn@umich.edufrom arm_generic import *
404486Sbinkertn@umich.eduimport switcheroo
414486Sbinkertn@umich.edu
424486Sbinkertn@umich.eduroot = LinuxArmFSSwitcheroo(
434486Sbinkertn@umich.edu    cpu_classes=(NonCachingSimpleCPU, TimingSimpleCPU),
445478Snate@binkert.org    ).create_root()
454486Sbinkertn@umich.edu
464486Sbinkertn@umich.edu# Setup a custom test method that uses the switcheroo tester that
474202Sbinkertn@umich.edu# switches between CPU models.
485794Ssaidi@eecs.umich.edurun_test = switcheroo.run_test
494202Sbinkertn@umich.edu