realview64-switcheroo-o3.py revision 11837:17b37f38944a
16145Snate@binkert.org# Copyright (c) 2012 ARM Limited 26145Snate@binkert.org# All rights reserved. 36145Snate@binkert.org# 46145Snate@binkert.org# The license below extends only to copyright in the software and shall 56145Snate@binkert.org# not be construed as granting a license to any other intellectual 66145Snate@binkert.org# property including but not limited to intellectual property relating 76145Snate@binkert.org# to a hardware implementation of the functionality of the software 86145Snate@binkert.org# licensed hereunder. You may use the software subject to the license 96145Snate@binkert.org# terms below provided that you ensure that this notice is replicated 106145Snate@binkert.org# unmodified and in its entirety in all distributions of the software, 116145Snate@binkert.org# modified or unmodified, in source code or in binary form. 126145Snate@binkert.org# 136145Snate@binkert.org# Redistribution and use in source and binary forms, with or without 146145Snate@binkert.org# modification, are permitted provided that the following conditions are 156145Snate@binkert.org# met: redistributions of source code must retain the above copyright 166145Snate@binkert.org# notice, this list of conditions and the following disclaimer; 176145Snate@binkert.org# redistributions in binary form must reproduce the above copyright 186145Snate@binkert.org# notice, this list of conditions and the following disclaimer in the 196145Snate@binkert.org# documentation and/or other materials provided with the distribution; 206145Snate@binkert.org# neither the name of the copyright holders nor the names of its 216145Snate@binkert.org# contributors may be used to endorse or promote products derived from 226145Snate@binkert.org# this software without specific prior written permission. 236145Snate@binkert.org# 246145Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 256145Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 266145Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 276145Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 286145Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 296145Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 306145Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 316145Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 326145Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 336145Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 346145Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 356145Snate@binkert.org# 366145Snate@binkert.org# Authors: Andreas Sandberg 376145Snate@binkert.org 386145Snate@binkert.orgfrom m5.objects import * 396145Snate@binkert.orgfrom arm_generic import * 406154Snate@binkert.orgimport switcheroo 416154Snate@binkert.org 426154Snate@binkert.orgroot = LinuxArmFSSwitcheroo( 436882SBrad.Beckmann@amd.com machine_type='VExpress_EMM64', 446145Snate@binkert.org mem_class=DDR3_1600_8x8, 456285Snate@binkert.org cpu_classes=(DerivO3CPU, DerivO3CPU) 466285Snate@binkert.org ).create_root() 476882SBrad.Beckmann@amd.com 486145Snate@binkert.org# Setup a custom test method that uses the switcheroo tester that 496145Snate@binkert.org# switches between CPU models. 506145Snate@binkert.orgrun_test = switcheroo.run_test 516145Snate@binkert.org