SConscript revision 8951
12929Sktlim@umich.edu# -*- mode:python -*- 211504Sandreas.sandberg@arm.com 311504Sandreas.sandberg@arm.com# Copyright (c) 2009 ARM Limited 411504Sandreas.sandberg@arm.com# All rights reserved. 511504Sandreas.sandberg@arm.com# 611504Sandreas.sandberg@arm.com# The license below extends only to copyright in the software and shall 711504Sandreas.sandberg@arm.com# not be construed as granting a license to any other intellectual 811504Sandreas.sandberg@arm.com# property including but not limited to intellectual property relating 911504Sandreas.sandberg@arm.com# to a hardware implementation of the functionality of the software 1011504Sandreas.sandberg@arm.com# licensed hereunder. You may use the software subject to the license 1111504Sandreas.sandberg@arm.com# terms below provided that you ensure that this notice is replicated 1211504Sandreas.sandberg@arm.com# unmodified and in its entirety in all distributions of the software, 1311504Sandreas.sandberg@arm.com# modified or unmodified, in source code or in binary form. 1411504Sandreas.sandberg@arm.com# 152932Sktlim@umich.edu# Copyright (c) 2007-2008 The Florida State University 162929Sktlim@umich.edu# All rights reserved. 172929Sktlim@umich.edu# 182929Sktlim@umich.edu# Redistribution and use in source and binary forms, with or without 192929Sktlim@umich.edu# modification, are permitted provided that the following conditions are 202929Sktlim@umich.edu# met: redistributions of source code must retain the above copyright 212929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer; 222929Sktlim@umich.edu# redistributions in binary form must reproduce the above copyright 232929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer in the 242929Sktlim@umich.edu# documentation and/or other materials provided with the distribution; 252929Sktlim@umich.edu# neither the name of the copyright holders nor the names of its 262929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from 272929Sktlim@umich.edu# this software without specific prior written permission. 282929Sktlim@umich.edu# 292929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 302929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 312929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322929Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 332929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 342929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 352929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 362929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 372929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 382929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 392929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 402932Sktlim@umich.edu# 412932Sktlim@umich.edu# Authors: Stephen Hines 422932Sktlim@umich.edu# Ali Saidi 4311504Sandreas.sandberg@arm.com 442929Sktlim@umich.eduImport('*') 452929Sktlim@umich.edu 4611504Sandreas.sandberg@arm.comif env['TARGET_ISA'] == 'arm': 4711504Sandreas.sandberg@arm.com# Workaround for bug in SCons version > 0.97d20071212 4811504Sandreas.sandberg@arm.com# Scons bug id: 2006 M5 Bug id: 308 4911504Sandreas.sandberg@arm.com Dir('isa/formats') 5011504Sandreas.sandberg@arm.com Source('faults.cc') 5111504Sandreas.sandberg@arm.com Source('insts/macromem.cc') 5211504Sandreas.sandberg@arm.com Source('insts/mem.cc') 5312246Sgabeblack@google.com Source('insts/misc.cc') 542929Sktlim@umich.edu Source('insts/pred_inst.cc') 552929Sktlim@umich.edu Source('insts/static_inst.cc') 562929Sktlim@umich.edu Source('insts/vfp.cc') 578947Sandreas.hansson@arm.com Source('interrupts.cc') 5812246Sgabeblack@google.com Source('isa.cc') 598947Sandreas.hansson@arm.com Source('linux/linux.cc') 602929Sktlim@umich.edu Source('linux/process.cc') 612929Sktlim@umich.edu Source('linux/system.cc') 6211504Sandreas.sandberg@arm.com Source('miscregs.cc') 6311504Sandreas.sandberg@arm.com Source('nativetrace.cc') 6411504Sandreas.sandberg@arm.com Source('predecoder.cc') 6511504Sandreas.sandberg@arm.com Source('process.cc') 6611504Sandreas.sandberg@arm.com Source('remote_gdb.cc') 6711504Sandreas.sandberg@arm.com Source('stacktrace.cc') 6811504Sandreas.sandberg@arm.com Source('system.cc') 692929Sktlim@umich.edu Source('table_walker.cc') 7011504Sandreas.sandberg@arm.com Source('tlb.cc') 7111504Sandreas.sandberg@arm.com Source('utility.cc') 726007Ssteve.reinhardt@amd.com Source('vtophys.cc') 736007Ssteve.reinhardt@amd.com 7411504Sandreas.sandberg@arm.com SimObject('ArmInterrupts.py') 752929Sktlim@umich.edu SimObject('ArmNativeTrace.py') 762929Sktlim@umich.edu SimObject('ArmSystem.py') 7711504Sandreas.sandberg@arm.com SimObject('ArmTLB.py') 786007Ssteve.reinhardt@amd.com 796007Ssteve.reinhardt@amd.com DebugFlag('Arm') 809781Sandreas.hansson@arm.com DebugFlag('TLBVerbose') 816007Ssteve.reinhardt@amd.com DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 8211504Sandreas.sandberg@arm.com DebugFlag('Predecoder', "Instructions returned by the predecoder") 832929Sktlim@umich.edu 842929Sktlim@umich.edu # Add in files generated by the ISA description. 8511504Sandreas.sandberg@arm.com isa_desc_files = env.ISADesc('isa/main.isa') 8611504Sandreas.sandberg@arm.com # Only non-header files need to be compiled. 8711504Sandreas.sandberg@arm.com for f in isa_desc_files: 8811504Sandreas.sandberg@arm.com if not f.path.endswith('.hh'): 8911504Sandreas.sandberg@arm.com Source(f) 906007Ssteve.reinhardt@amd.com 9111504Sandreas.sandberg@arm.com