19674Snilay@cs.wisc.edu# Copyright (c) 2012 ARM Limited
29674Snilay@cs.wisc.edu# Copyright (c) 2013 Mark D. Hill and David A. Wood
39674Snilay@cs.wisc.edu# All rights reserved.
49674Snilay@cs.wisc.edu#
59674Snilay@cs.wisc.edu# The license below extends only to copyright in the software and shall
69674Snilay@cs.wisc.edu# not be construed as granting a license to any other intellectual
79674Snilay@cs.wisc.edu# property including but not limited to intellectual property relating
89674Snilay@cs.wisc.edu# to a hardware implementation of the functionality of the software
99674Snilay@cs.wisc.edu# licensed hereunder.  You may use the software subject to the license
109674Snilay@cs.wisc.edu# terms below provided that you ensure that this notice is replicated
119674Snilay@cs.wisc.edu# unmodified and in its entirety in all distributions of the software,
129674Snilay@cs.wisc.edu# modified or unmodified, in source code or in binary form.
139674Snilay@cs.wisc.edu#
149674Snilay@cs.wisc.edu# Redistribution and use in source and binary forms, with or without
159674Snilay@cs.wisc.edu# modification, are permitted provided that the following conditions are
169674Snilay@cs.wisc.edu# met: redistributions of source code must retain the above copyright
179674Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer;
189674Snilay@cs.wisc.edu# redistributions in binary form must reproduce the above copyright
199674Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer in the
209674Snilay@cs.wisc.edu# documentation and/or other materials provided with the distribution;
219674Snilay@cs.wisc.edu# neither the name of the copyright holders nor the names of its
229674Snilay@cs.wisc.edu# contributors may be used to endorse or promote products derived from
239674Snilay@cs.wisc.edu# this software without specific prior written permission.
249674Snilay@cs.wisc.edu#
259674Snilay@cs.wisc.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
269674Snilay@cs.wisc.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
279674Snilay@cs.wisc.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
289674Snilay@cs.wisc.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
299674Snilay@cs.wisc.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
309674Snilay@cs.wisc.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
319674Snilay@cs.wisc.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
329674Snilay@cs.wisc.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
339674Snilay@cs.wisc.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
349674Snilay@cs.wisc.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
359674Snilay@cs.wisc.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
369674Snilay@cs.wisc.edu#
379674Snilay@cs.wisc.edu# Authors: Andreas Sandberg
389674Snilay@cs.wisc.edu#          Nilay Vaish
399674Snilay@cs.wisc.edu
409674Snilay@cs.wisc.edufrom m5.objects import *
419674Snilay@cs.wisc.edufrom x86_generic import *
429674Snilay@cs.wisc.eduimport switcheroo
439674Snilay@cs.wisc.edu
449674Snilay@cs.wisc.eduroot = LinuxX86FSSwitcheroo(
4511837Swendy.elsasser@arm.com    mem_class=DDR3_1600_8x8,
469674Snilay@cs.wisc.edu    cpu_classes=(AtomicSimpleCPU, TimingSimpleCPU, DerivO3CPU)
479674Snilay@cs.wisc.edu    ).create_root()
489674Snilay@cs.wisc.edu
499674Snilay@cs.wisc.edu# Setup a custom test method that uses the switcheroo tester that
509674Snilay@cs.wisc.edu# switches between CPU models.
519674Snilay@cs.wisc.edurun_test = switcheroo.run_test
52