SConscript revision 8831
12155SN/A# -*- mode:python -*- 22155SN/A 32155SN/A# Copyright (c) 2009 ARM Limited 42155SN/A# All rights reserved. 52155SN/A# 62155SN/A# The license below extends only to copyright in the software and shall 72155SN/A# not be construed as granting a license to any other intellectual 82155SN/A# property including but not limited to intellectual property relating 92155SN/A# to a hardware implementation of the functionality of the software 102155SN/A# licensed hereunder. You may use the software subject to the license 112155SN/A# terms below provided that you ensure that this notice is replicated 122155SN/A# unmodified and in its entirety in all distributions of the software, 132155SN/A# modified or unmodified, in source code or in binary form. 142155SN/A# 152155SN/A# Copyright (c) 2007-2008 The Florida State University 162155SN/A# All rights reserved. 172155SN/A# 182155SN/A# Redistribution and use in source and binary forms, with or without 192155SN/A# modification, are permitted provided that the following conditions are 202155SN/A# met: redistributions of source code must retain the above copyright 212155SN/A# notice, this list of conditions and the following disclaimer; 222155SN/A# redistributions in binary form must reproduce the above copyright 232155SN/A# notice, this list of conditions and the following disclaimer in the 242155SN/A# documentation and/or other materials provided with the distribution; 252155SN/A# neither the name of the copyright holders nor the names of its 262155SN/A# contributors may be used to endorse or promote products derived from 272155SN/A# this software without specific prior written permission. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 302155SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 314202Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322155SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 332178SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 342178SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 352178SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 362178SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 372178SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 382178SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 392178SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 402178SN/A# 412178SN/A# Authors: Stephen Hines 422178SN/A# Ali Saidi 432178SN/A 442178SN/AImport('*') 452155SN/A 462178SN/Aif env['TARGET_ISA'] == 'arm': 472155SN/A# Workaround for bug in SCons version > 0.97d20071212 482155SN/A# Scons bug id: 2006 M5 Bug id: 308 492178SN/A Dir('isa/formats') 502155SN/A Source('faults.cc') 512155SN/A Source('insts/macromem.cc') 522623SN/A Source('insts/mem.cc') 533918Ssaidi@eecs.umich.edu Source('insts/misc.cc') 542623SN/A Source('insts/pred_inst.cc') 552623SN/A Source('insts/static_inst.cc') 563918Ssaidi@eecs.umich.edu Source('insts/vfp.cc') 572155SN/A Source('interrupts.cc') 582155SN/A Source('isa.cc') 592292SN/A Source('linux/linux.cc') 603918Ssaidi@eecs.umich.edu Source('linux/process.cc') 612292SN/A Source('linux/system.cc') 622292SN/A Source('miscregs.cc') 632292SN/A Source('nativetrace.cc') 643918Ssaidi@eecs.umich.edu Source('predecoder.cc') 652292SN/A Source('process.cc') 662292SN/A Source('remote_gdb.cc') 672766Sktlim@umich.edu Source('stacktrace.cc') 682766Sktlim@umich.edu Source('system.cc') 692766Sktlim@umich.edu Source('table_walker.cc') 702921Sktlim@umich.edu Source('tlb.cc') 712921Sktlim@umich.edu Source('utility.cc') 722766Sktlim@umich.edu Source('vtophys.cc') 732766Sktlim@umich.edu 742766Sktlim@umich.edu SimObject('ArmInterrupts.py') 754762Snate@binkert.org SimObject('ArmNativeTrace.py') 762155SN/A SimObject('ArmSystem.py') 772155SN/A SimObject('ArmTLB.py') 782155SN/A 792155SN/A DebugFlag('Arm') 802155SN/A DebugFlag('TLBVerbose') 812155SN/A DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 822766Sktlim@umich.edu DebugFlag('Predecoder', "Instructions returned by the predecoder") 832155SN/A 842623SN/A # Add in files generated by the ISA description. 852155SN/A isa_desc_files = env.ISADesc('isa/main.isa') 862155SN/A # Only non-header files need to be compiled. 872155SN/A for f in isa_desc_files: 882155SN/A if not f.path.endswith('.hh'): 892178SN/A Source(f) 902178SN/A 912178SN/A