SConscript revision 10916
12686Sksewell@umich.edu# -*- mode:python -*-
22100SN/A
35254Sksewell@umich.edu# Copyright (c) 2009, 2012-2013 ARM Limited
45254Sksewell@umich.edu# All rights reserved.
55254Sksewell@umich.edu#
65254Sksewell@umich.edu# The license below extends only to copyright in the software and shall
75254Sksewell@umich.edu# not be construed as granting a license to any other intellectual
85254Sksewell@umich.edu# property including but not limited to intellectual property relating
95254Sksewell@umich.edu# to a hardware implementation of the functionality of the software
105254Sksewell@umich.edu# licensed hereunder.  You may use the software subject to the license
115254Sksewell@umich.edu# terms below provided that you ensure that this notice is replicated
125254Sksewell@umich.edu# unmodified and in its entirety in all distributions of the software,
135254Sksewell@umich.edu# modified or unmodified, in source code or in binary form.
145254Sksewell@umich.edu#
155254Sksewell@umich.edu# Copyright (c) 2007-2008 The Florida State University
165254Sksewell@umich.edu# All rights reserved.
175254Sksewell@umich.edu#
185254Sksewell@umich.edu# Redistribution and use in source and binary forms, with or without
195254Sksewell@umich.edu# modification, are permitted provided that the following conditions are
205254Sksewell@umich.edu# met: redistributions of source code must retain the above copyright
215254Sksewell@umich.edu# notice, this list of conditions and the following disclaimer;
225254Sksewell@umich.edu# redistributions in binary form must reproduce the above copyright
235254Sksewell@umich.edu# notice, this list of conditions and the following disclaimer in the
245254Sksewell@umich.edu# documentation and/or other materials provided with the distribution;
255254Sksewell@umich.edu# neither the name of the copyright holders nor the names of its
265254Sksewell@umich.edu# contributors may be used to endorse or promote products derived from
275254Sksewell@umich.edu# this software without specific prior written permission.
285254Sksewell@umich.edu#
295254Sksewell@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
305254Sksewell@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
315254Sksewell@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
322706Sksewell@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
332022SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
342022SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
352043SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
362024SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
372024SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
382043SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
392686Sksewell@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
404661Sksewell@umich.edu#
412022SN/A# Authors: Stephen Hines
422083SN/A#          Ali Saidi
432686Sksewell@umich.edu
442101SN/AImport('*')
452043SN/A
462043SN/Aif env['TARGET_ISA'] == 'arm':
472101SN/A# Workaround for bug in SCons version > 0.97d20071212
482101SN/A# Scons bug id: 2006 M5 Bug id: 308 
492686Sksewell@umich.edu    Dir('isa/formats')
502686Sksewell@umich.edu    Source('decoder.cc')
512101SN/A    Source('faults.cc')
522101SN/A    Source('insts/branch64.cc')
532101SN/A    Source('insts/data64.cc')
542046SN/A    Source('insts/macromem.cc')
552686Sksewell@umich.edu    Source('insts/mem.cc')
562686Sksewell@umich.edu    Source('insts/mem64.cc')
572686Sksewell@umich.edu    Source('insts/misc.cc')
582470SN/A    Source('insts/misc64.cc')
592686Sksewell@umich.edu    Source('insts/pred_inst.cc')
604661Sksewell@umich.edu    Source('insts/pseudo.cc')
615222Sksewell@umich.edu    Source('insts/static_inst.cc')
625222Sksewell@umich.edu    Source('insts/vfp.cc')
632686Sksewell@umich.edu    Source('insts/fplib.cc')
642686Sksewell@umich.edu    Source('interrupts.cc')
652470SN/A    Source('isa.cc')
662241SN/A    Source('isa_device.cc')
672101SN/A    Source('linux/linux.cc')
682495SN/A    Source('linux/process.cc')
692495SN/A    Source('linux/system.cc')
702495SN/A    Source('freebsd/freebsd.cc')
712101SN/A    Source('freebsd/process.cc')
722495SN/A    Source('freebsd/system.cc')
732495SN/A    Source('miscregs.cc')
742495SN/A    Source('nativetrace.cc')
752101SN/A    Source('pmu.cc')
762101SN/A    Source('process.cc')
772495SN/A    Source('remote_gdb.cc')
782495SN/A    Source('stacktrace.cc')
792495SN/A    Source('system.cc')
802495SN/A    Source('table_walker.cc')
812495SN/A    Source('stage2_mmu.cc')
822495SN/A    Source('stage2_lookup.cc')
832495SN/A    Source('tlb.cc')
842495SN/A    Source('utility.cc')
852495SN/A    Source('vtophys.cc')
862495SN/A
872495SN/A    SimObject('ArmInterrupts.py')
882495SN/A    SimObject('ArmISA.py')
892495SN/A    SimObject('ArmNativeTrace.py')
902101SN/A    SimObject('ArmSystem.py')
912101SN/A    SimObject('ArmTLB.py')
922101SN/A    SimObject('ArmPMU.py')
932101SN/A
942101SN/A    DebugFlag('Arm')
952101SN/A    DebugFlag('Decoder', "Instructions returned by the predecoder")
962101SN/A    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
972101SN/A    DebugFlag('PMUVerbose', "Performance Monitor")
982101SN/A    DebugFlag('TLBVerbose')
992101SN/A
1002495SN/A    # Add files generated by the ISA description.
1012495SN/A    env.ISADesc('isa/main.isa')
1022495SN/A