SConscript revision 10611
15222Sksewell@umich.edu# -*- mode:python -*- 25268Sksewell@umich.edu 35268Sksewell@umich.edu# Copyright (c) 2009, 2012-2013 ARM Limited 45222Sksewell@umich.edu# All rights reserved. 55268Sksewell@umich.edu# 65268Sksewell@umich.edu# The license below extends only to copyright in the software and shall 75268Sksewell@umich.edu# not be construed as granting a license to any other intellectual 85268Sksewell@umich.edu# property including but not limited to intellectual property relating 95268Sksewell@umich.edu# to a hardware implementation of the functionality of the software 105268Sksewell@umich.edu# licensed hereunder. You may use the software subject to the license 115268Sksewell@umich.edu# terms below provided that you ensure that this notice is replicated 125268Sksewell@umich.edu# unmodified and in its entirety in all distributions of the software, 135268Sksewell@umich.edu# modified or unmodified, in source code or in binary form. 145268Sksewell@umich.edu# 155222Sksewell@umich.edu# Copyright (c) 2007-2008 The Florida State University 165268Sksewell@umich.edu# All rights reserved. 175268Sksewell@umich.edu# 185268Sksewell@umich.edu# Redistribution and use in source and binary forms, with or without 195268Sksewell@umich.edu# modification, are permitted provided that the following conditions are 205268Sksewell@umich.edu# met: redistributions of source code must retain the above copyright 215268Sksewell@umich.edu# notice, this list of conditions and the following disclaimer; 225268Sksewell@umich.edu# redistributions in binary form must reproduce the above copyright 235268Sksewell@umich.edu# notice, this list of conditions and the following disclaimer in the 245268Sksewell@umich.edu# documentation and/or other materials provided with the distribution; 255268Sksewell@umich.edu# neither the name of the copyright holders nor the names of its 265268Sksewell@umich.edu# contributors may be used to endorse or promote products derived from 275222Sksewell@umich.edu# this software without specific prior written permission. 285222Sksewell@umich.edu# 295222Sksewell@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 305222Sksewell@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 315222Sksewell@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 3211793Sbrandon.potter@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 335222Sksewell@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 345222Sksewell@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 355222Sksewell@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 365222Sksewell@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 375222Sksewell@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 385222Sksewell@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 395222Sksewell@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 405222Sksewell@umich.edu# 415222Sksewell@umich.edu# Authors: Stephen Hines 425222Sksewell@umich.edu# Ali Saidi 435222Sksewell@umich.edu 445222Sksewell@umich.eduImport('*') 455222Sksewell@umich.edu 465222Sksewell@umich.eduif env['TARGET_ISA'] == 'arm': 475222Sksewell@umich.edu# Workaround for bug in SCons version > 0.97d20071212 48# Scons bug id: 2006 M5 Bug id: 308 49 Dir('isa/formats') 50 Source('decoder.cc') 51 Source('faults.cc') 52 Source('insts/branch64.cc') 53 Source('insts/data64.cc') 54 Source('insts/macromem.cc') 55 Source('insts/mem.cc') 56 Source('insts/mem64.cc') 57 Source('insts/misc.cc') 58 Source('insts/misc64.cc') 59 Source('insts/pred_inst.cc') 60 Source('insts/pseudo.cc') 61 Source('insts/static_inst.cc') 62 Source('insts/vfp.cc') 63 Source('insts/fplib.cc') 64 Source('interrupts.cc') 65 Source('isa.cc') 66 Source('isa_device.cc') 67 Source('linux/linux.cc') 68 Source('linux/process.cc') 69 Source('linux/system.cc') 70 Source('miscregs.cc') 71 Source('nativetrace.cc') 72 Source('pmu.cc') 73 Source('process.cc') 74 Source('remote_gdb.cc') 75 Source('stacktrace.cc') 76 Source('system.cc') 77 Source('table_walker.cc') 78 Source('stage2_mmu.cc') 79 Source('stage2_lookup.cc') 80 Source('tlb.cc') 81 Source('utility.cc') 82 Source('vtophys.cc') 83 84 SimObject('ArmInterrupts.py') 85 SimObject('ArmISA.py') 86 SimObject('ArmNativeTrace.py') 87 SimObject('ArmSystem.py') 88 SimObject('ArmTLB.py') 89 SimObject('ArmPMU.py') 90 91 DebugFlag('Arm') 92 DebugFlag('Decoder', "Instructions returned by the predecoder") 93 DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 94 DebugFlag('PMUVerbose', "Performance Monitor") 95 DebugFlag('TLBVerbose') 96 97 # Add files generated by the ISA description. 98 env.ISADesc('isa/main.isa') 99