SConscript revision 13955
12SN/A# -*- mode:python -*-
21762SN/A
32SN/A# Copyright (c) 2009, 2012-2013, 2017-2018 ARM Limited
42SN/A# All rights reserved.
52SN/A#
62SN/A# The license below extends only to copyright in the software and shall
72SN/A# not be construed as granting a license to any other intellectual
82SN/A# property including but not limited to intellectual property relating
92SN/A# to a hardware implementation of the functionality of the software
102SN/A# licensed hereunder.  You may use the software subject to the license
112SN/A# terms below provided that you ensure that this notice is replicated
122SN/A# unmodified and in its entirety in all distributions of the software,
132SN/A# modified or unmodified, in source code or in binary form.
142SN/A#
152SN/A# Copyright (c) 2007-2008 The Florida State University
162SN/A# All rights reserved.
172SN/A#
182SN/A# Redistribution and use in source and binary forms, with or without
192SN/A# modification, are permitted provided that the following conditions are
202SN/A# met: redistributions of source code must retain the above copyright
212SN/A# notice, this list of conditions and the following disclaimer;
222SN/A# redistributions in binary form must reproduce the above copyright
232SN/A# notice, this list of conditions and the following disclaimer in the
242SN/A# documentation and/or other materials provided with the distribution;
252SN/A# neither the name of the copyright holders nor the names of its
262SN/A# contributors may be used to endorse or promote products derived from
272665Ssaidi@eecs.umich.edu# 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
302SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
312SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
322SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
332SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
342SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
351717SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
362680Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3756SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38146SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3956SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
402SN/A#
412SN/A# Authors: Stephen Hines
422SN/A#          Ali Saidi
432SN/A
442SN/AImport('*')
452SN/A
462SN/Aif env['TARGET_ISA'] == 'arm':
47295SN/A# Workaround for bug in SCons version > 0.97d20071212
48295SN/A# Scons bug id: 2006 M5 Bug id: 308
49295SN/A    Dir('isa/formats')
50295SN/A    Source('decoder.cc')
51295SN/A    Source('faults.cc')
52295SN/A    Source('insts/branch.cc')
53295SN/A    Source('insts/branch64.cc')
542680Sktlim@umich.edu    Source('insts/data64.cc')
552680Sktlim@umich.edu    Source('insts/macromem.cc')
56295SN/A    Source('insts/mem.cc')
57295SN/A    Source('insts/mem64.cc')
58295SN/A    Source('insts/misc.cc')
59295SN/A    Source('insts/misc64.cc')
60295SN/A    Source('insts/pred_inst.cc')
61295SN/A    Source('insts/pseudo.cc')
622680Sktlim@umich.edu    Source('insts/static_inst.cc')
632680Sktlim@umich.edu    Source('insts/sve.cc')
64295SN/A    Source('insts/sve_mem.cc')
65295SN/A    Source('insts/vfp.cc')
66295SN/A    Source('insts/fplib.cc')
67295SN/A    Source('insts/crypto.cc')
68295SN/A    Source('interrupts.cc')
69295SN/A    Source('isa.cc')
702680Sktlim@umich.edu    Source('isa_device.cc')
712680Sktlim@umich.edu    Source('linux/linux.cc')
72295SN/A    Source('linux/process.cc')
73295SN/A    Source('linux/system.cc')
74295SN/A    Source('freebsd/freebsd.cc')
75295SN/A    Source('freebsd/process.cc')
76295SN/A    Source('freebsd/system.cc')
77295SN/A    Source('miscregs.cc')
782680Sktlim@umich.edu    Source('nativetrace.cc')
792680Sktlim@umich.edu    Source('pmu.cc')
80295SN/A    Source('process.cc')
81295SN/A    Source('remote_gdb.cc')
82295SN/A    Source('semihosting.cc')
832SN/A    Source('stacktrace.cc')
842SN/A    Source('system.cc')
852SN/A    Source('table_walker.cc')
862SN/A    Source('stage2_mmu.cc')
872SN/A    Source('stage2_lookup.cc')
882SN/A    Source('tlb.cc')
892SN/A    Source('tlbi_op.cc')
902SN/A    Source('utility.cc')
91295SN/A    Source('vtophys.cc')
922SN/A
932SN/A    SimObject('ArmInterrupts.py')
942SN/A    SimObject('ArmISA.py')
952SN/A    SimObject('ArmNativeTrace.py')
962SN/A    SimObject('ArmSemihosting.py')
972SN/A    SimObject('ArmSystem.py')
982SN/A    SimObject('ArmTLB.py')
992SN/A    SimObject('ArmPMU.py')
1002SN/A
101    DebugFlag('Arm')
102    DebugFlag('Semihosting')
103    DebugFlag('Decoder', "Instructions returned by the predecoder")
104    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
105    DebugFlag('PMUVerbose', "Performance Monitor")
106    DebugFlag('TLBVerbose')
107
108    # Add files generated by the ISA description.
109    ISADesc('isa/main.isa', decoder_splits=3, exec_splits=6)
110
111    GdbXml('arm/arm-with-neon.xml', 'gdb_xml_arm_target')
112    GdbXml('arm/arm-core.xml', 'gdb_xml_arm_core')
113    GdbXml('arm/arm-vfpv3.xml', 'gdb_xml_arm_vfpv3')
114    GdbXml('aarch64.xml', 'gdb_xml_aarch64_target')
115    GdbXml('aarch64-core.xml', 'gdb_xml_aarch64_core')
116    GdbXml('aarch64-fpu.xml', 'gdb_xml_aarch64_fpu')
117