SConscript revision 10859
12139SN/A# -*- mode:python -*- 22139SN/A 32139SN/A# Copyright (c) 2015 ARM Limited 42139SN/A# All rights reserved. 52139SN/A# 62139SN/A# The license below extends only to copyright in the software and shall 72139SN/A# not be construed as granting a license to any other intellectual 82139SN/A# property including but not limited to intellectual property relating 92139SN/A# to a hardware implementation of the functionality of the software 102139SN/A# licensed hereunder. You may use the software subject to the license 112139SN/A# terms below provided that you ensure that this notice is replicated 122139SN/A# unmodified and in its entirety in all distributions of the software, 132139SN/A# modified or unmodified, in source code or in binary form. 142139SN/A# 152139SN/A# Redistribution and use in source and binary forms, with or without 162139SN/A# modification, are permitted provided that the following conditions are 172139SN/A# met: redistributions of source code must retain the above copyright 182139SN/A# notice, this list of conditions and the following disclaimer; 192139SN/A# redistributions in binary form must reproduce the above copyright 202139SN/A# notice, this list of conditions and the following disclaimer in the 212139SN/A# documentation and/or other materials provided with the distribution; 222139SN/A# neither the name of the copyright holders nor the names of its 232139SN/A# contributors may be used to endorse or promote products derived from 242139SN/A# this software without specific prior written permission. 252139SN/A# 262139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 272139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 282665Ssaidi@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 292665Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 302139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 314202Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 328961Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 332139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 344202Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 352152SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 362152SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 372139SN/A# 382139SN/A# Authors: Andreas Sandberg 392139SN/A 402139SN/AImport('*') 412139SN/A 422152SN/Aif not (env['USE_KVM'] and env['TARGET_ISA'] == 'arm'): 432152SN/A Return() 442139SN/A 452139SN/Aimport platform 462139SN/Ahost_isa = platform.machine() 479020Sgblack@eecs.umich.edu 484781Snate@binkert.orgSimObject('KvmGic.py') 497799Sgblack@eecs.umich.eduSource('gic.cc') 504781Snate@binkert.org 514781Snate@binkert.orgif host_isa == "armv7l": 523170Sstever@eecs.umich.edu SimObject('ArmKvmCPU.py') 535664Sgblack@eecs.umich.edu Source('arm_cpu.cc') 548105Sgblack@eecs.umich.edu