SConscript revision 10037:5cac77888310
1955SN/A# -*- mode:python -*- 2955SN/A 312230Sgiacomo.travaglini@arm.com# Copyright (c) 2009, 2012-2013 ARM Limited 49812Sandreas.hansson@arm.com# All rights reserved. 59812Sandreas.hansson@arm.com# 69812Sandreas.hansson@arm.com# The license below extends only to copyright in the software and shall 79812Sandreas.hansson@arm.com# not be construed as granting a license to any other intellectual 89812Sandreas.hansson@arm.com# property including but not limited to intellectual property relating 99812Sandreas.hansson@arm.com# to a hardware implementation of the functionality of the software 109812Sandreas.hansson@arm.com# licensed hereunder. You may use the software subject to the license 119812Sandreas.hansson@arm.com# terms below provided that you ensure that this notice is replicated 129812Sandreas.hansson@arm.com# unmodified and in its entirety in all distributions of the software, 139812Sandreas.hansson@arm.com# modified or unmodified, in source code or in binary form. 149812Sandreas.hansson@arm.com# 157816Ssteve.reinhardt@amd.com# Copyright (c) 2007-2008 The Florida State University 165871Snate@binkert.org# All rights reserved. 171762SN/A# 18955SN/A# Redistribution and use in source and binary forms, with or without 19955SN/A# modification, are permitted provided that the following conditions are 20955SN/A# met: redistributions of source code must retain the above copyright 21955SN/A# notice, this list of conditions and the following disclaimer; 22955SN/A# redistributions in binary form must reproduce the above copyright 23955SN/A# notice, this list of conditions and the following disclaimer in the 24955SN/A# documentation and/or other materials provided with the distribution; 25955SN/A# neither the name of the copyright holders nor the names of its 26955SN/A# contributors may be used to endorse or promote products derived from 27955SN/A# this software without specific prior written permission. 28955SN/A# 29955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 30955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 31955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 32955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 33955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 34955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 35955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 36955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 37955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 38955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 39955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40955SN/A# 41955SN/A# Authors: Stephen Hines 422665Ssaidi@eecs.umich.edu# Ali Saidi 432665Ssaidi@eecs.umich.edu 445863Snate@binkert.orgImport('*') 45955SN/A 46955SN/Aif env['TARGET_ISA'] == 'arm': 47955SN/A# Workaround for bug in SCons version > 0.97d20071212 48955SN/A# Scons bug id: 2006 M5 Bug id: 308 49955SN/A Dir('isa/formats') 508878Ssteve.reinhardt@amd.com Source('decoder.cc') 512632Sstever@eecs.umich.edu Source('faults.cc') 528878Ssteve.reinhardt@amd.com Source('insts/branch64.cc') 532632Sstever@eecs.umich.edu Source('insts/data64.cc') 54955SN/A Source('insts/macromem.cc') 558878Ssteve.reinhardt@amd.com Source('insts/mem.cc') 562632Sstever@eecs.umich.edu Source('insts/mem64.cc') 572761Sstever@eecs.umich.edu Source('insts/misc.cc') 582632Sstever@eecs.umich.edu Source('insts/misc64.cc') 592632Sstever@eecs.umich.edu Source('insts/pred_inst.cc') 602632Sstever@eecs.umich.edu Source('insts/static_inst.cc') 612761Sstever@eecs.umich.edu Source('insts/vfp.cc') 622761Sstever@eecs.umich.edu Source('insts/fplib.cc') 632761Sstever@eecs.umich.edu Source('interrupts.cc') 648878Ssteve.reinhardt@amd.com Source('isa.cc') 658878Ssteve.reinhardt@amd.com Source('linux/linux.cc') 662761Sstever@eecs.umich.edu Source('linux/process.cc') 672761Sstever@eecs.umich.edu Source('linux/system.cc') 682761Sstever@eecs.umich.edu Source('miscregs.cc') 692761Sstever@eecs.umich.edu Source('nativetrace.cc') 702761Sstever@eecs.umich.edu Source('process.cc') 718878Ssteve.reinhardt@amd.com Source('remote_gdb.cc') 728878Ssteve.reinhardt@amd.com Source('stacktrace.cc') 732632Sstever@eecs.umich.edu Source('system.cc') 742632Sstever@eecs.umich.edu Source('table_walker.cc') 758878Ssteve.reinhardt@amd.com Source('stage2_mmu.cc') 768878Ssteve.reinhardt@amd.com Source('stage2_lookup.cc') 772632Sstever@eecs.umich.edu Source('tlb.cc') 78955SN/A Source('utility.cc') 79955SN/A Source('vtophys.cc') 80955SN/A 815863Snate@binkert.org SimObject('ArmInterrupts.py') 825863Snate@binkert.org SimObject('ArmISA.py') 835863Snate@binkert.org SimObject('ArmNativeTrace.py') 845863Snate@binkert.org SimObject('ArmSystem.py') 855863Snate@binkert.org SimObject('ArmTLB.py') 865863Snate@binkert.org 875863Snate@binkert.org DebugFlag('Arm') 885863Snate@binkert.org DebugFlag('Decoder', "Instructions returned by the predecoder") 895863Snate@binkert.org DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 905863Snate@binkert.org DebugFlag('TLBVerbose') 915863Snate@binkert.org 928878Ssteve.reinhardt@amd.com # Add in files generated by the ISA description. 935863Snate@binkert.org isa_desc_files = env.ISADesc('isa/main.isa') 945863Snate@binkert.org # Only non-header files need to be compiled. 955863Snate@binkert.org for f in isa_desc_files: 9612178Sprosenfeld@micron.com if not f.path.endswith('.hh'): 975863Snate@binkert.org Source(f) 9812178Sprosenfeld@micron.com 995863Snate@binkert.org