SConscript revision 12605
1247Sstever@eecs.umich.edu# -*- mode:python -*- 21372Sstever@eecs.umich.edu 3247Sstever@eecs.umich.edu# Copyright (c) 2009, 2012-2013 ARM Limited 4247Sstever@eecs.umich.edu# All rights reserved. 5247Sstever@eecs.umich.edu# 6247Sstever@eecs.umich.edu# The license below extends only to copyright in the software and shall 7247Sstever@eecs.umich.edu# not be construed as granting a license to any other intellectual 8247Sstever@eecs.umich.edu# property including but not limited to intellectual property relating 9247Sstever@eecs.umich.edu# to a hardware implementation of the functionality of the software 10247Sstever@eecs.umich.edu# licensed hereunder. You may use the software subject to the license 11247Sstever@eecs.umich.edu# terms below provided that you ensure that this notice is replicated 12247Sstever@eecs.umich.edu# unmodified and in its entirety in all distributions of the software, 13247Sstever@eecs.umich.edu# modified or unmodified, in source code or in binary form. 14247Sstever@eecs.umich.edu# 15247Sstever@eecs.umich.edu# Copyright (c) 2007-2008 The Florida State University 16247Sstever@eecs.umich.edu# All rights reserved. 17247Sstever@eecs.umich.edu# 18247Sstever@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 19247Sstever@eecs.umich.edu# modification, are permitted provided that the following conditions are 20247Sstever@eecs.umich.edu# met: redistributions of source code must retain the above copyright 21247Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 22247Sstever@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 23247Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 24247Sstever@eecs.umich.edu# documentation and/or other materials provided with the distribution; 25247Sstever@eecs.umich.edu# neither the name of the copyright holders nor the names of its 26247Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from 27247Sstever@eecs.umich.edu# this software without specific prior written permission. 28247Sstever@eecs.umich.edu# 29247Sstever@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 301123Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 311123Sstever@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 321123Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 331123Sstever@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 341123Sstever@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 351123Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 361123Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 371123Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 381123Sstever@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 391123Sstever@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 401123Sstever@eecs.umich.edu# 41247Sstever@eecs.umich.edu# Authors: Stephen Hines 42247Sstever@eecs.umich.edu# Ali Saidi 431123Sstever@eecs.umich.edu 44247Sstever@eecs.umich.eduImport('*') 45247Sstever@eecs.umich.edu 46247Sstever@eecs.umich.eduif env['TARGET_ISA'] == 'arm': 47247Sstever@eecs.umich.edu# Workaround for bug in SCons version > 0.97d20071212 48247Sstever@eecs.umich.edu# Scons bug id: 2006 M5 Bug id: 308 49247Sstever@eecs.umich.edu Dir('isa/formats') 50247Sstever@eecs.umich.edu Source('decoder.cc') 51247Sstever@eecs.umich.edu Source('faults.cc') 52579Sstever@eecs.umich.edu Source('insts/branch64.cc') 53247Sstever@eecs.umich.edu Source('insts/data64.cc') 541123Sstever@eecs.umich.edu Source('insts/macromem.cc') 551123Sstever@eecs.umich.edu Source('insts/mem.cc') 561372Sstever@eecs.umich.edu Source('insts/mem64.cc') 571123Sstever@eecs.umich.edu Source('insts/misc.cc') 58704Sstever@eecs.umich.edu Source('insts/misc64.cc') 59704Sstever@eecs.umich.edu Source('insts/pred_inst.cc') 60247Sstever@eecs.umich.edu Source('insts/pseudo.cc') 61247Sstever@eecs.umich.edu Source('insts/static_inst.cc') 62247Sstever@eecs.umich.edu Source('insts/vfp.cc') 63247Sstever@eecs.umich.edu Source('insts/fplib.cc') 64247Sstever@eecs.umich.edu Source('interrupts.cc') 65247Sstever@eecs.umich.edu Source('isa.cc') 66247Sstever@eecs.umich.edu Source('isa_device.cc') 67247Sstever@eecs.umich.edu Source('linux/linux.cc') 68247Sstever@eecs.umich.edu Source('linux/process.cc') 69247Sstever@eecs.umich.edu Source('linux/system.cc') 70 Source('freebsd/freebsd.cc') 71 Source('freebsd/process.cc') 72 Source('freebsd/system.cc') 73 Source('miscregs.cc') 74 Source('nativetrace.cc') 75 Source('pmu.cc') 76 Source('process.cc') 77 Source('remote_gdb.cc') 78 Source('semihosting.cc') 79 Source('stacktrace.cc') 80 Source('system.cc') 81 Source('table_walker.cc') 82 Source('stage2_mmu.cc') 83 Source('stage2_lookup.cc') 84 Source('tlb.cc') 85 Source('tlbi_op.cc') 86 Source('utility.cc') 87 Source('vtophys.cc') 88 89 SimObject('ArmInterrupts.py') 90 SimObject('ArmISA.py') 91 SimObject('ArmNativeTrace.py') 92 SimObject('ArmSemihosting.py') 93 SimObject('ArmSystem.py') 94 SimObject('ArmTLB.py') 95 SimObject('ArmPMU.py') 96 97 DebugFlag('Arm') 98 DebugFlag('Semihosting') 99 DebugFlag('Decoder', "Instructions returned by the predecoder") 100 DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 101 DebugFlag('PMUVerbose', "Performance Monitor") 102 DebugFlag('TLBVerbose') 103 104 # Add files generated by the ISA description. 105 ISADesc('isa/main.isa', decoder_splits=3, exec_splits=6) 106