SConscript revision 13579:c892d017124f
110915Sandreas.sandberg@arm.com# -*- mode:python -*-
210915Sandreas.sandberg@arm.com
310915Sandreas.sandberg@arm.com# Copyright (c) 2009, 2012-2013, 2018 ARM Limited
410915Sandreas.sandberg@arm.com# All rights reserved.
510915Sandreas.sandberg@arm.com#
610915Sandreas.sandberg@arm.com# The license below extends only to copyright in the software and shall
710915Sandreas.sandberg@arm.com# not be construed as granting a license to any other intellectual
810915Sandreas.sandberg@arm.com# property including but not limited to intellectual property relating
910915Sandreas.sandberg@arm.com# to a hardware implementation of the functionality of the software
1010915Sandreas.sandberg@arm.com# licensed hereunder.  You may use the software subject to the license
1110915Sandreas.sandberg@arm.com# terms below provided that you ensure that this notice is replicated
1210915Sandreas.sandberg@arm.com# unmodified and in its entirety in all distributions of the software,
1310915Sandreas.sandberg@arm.com# modified or unmodified, in source code or in binary form.
1410915Sandreas.sandberg@arm.com#
1510915Sandreas.sandberg@arm.com# Copyright (c) 2007-2008 The Florida State University
1610915Sandreas.sandberg@arm.com# All rights reserved.
1710915Sandreas.sandberg@arm.com#
1810915Sandreas.sandberg@arm.com# Redistribution and use in source and binary forms, with or without
1910915Sandreas.sandberg@arm.com# modification, are permitted provided that the following conditions are
2010915Sandreas.sandberg@arm.com# met: redistributions of source code must retain the above copyright
2110915Sandreas.sandberg@arm.com# notice, this list of conditions and the following disclaimer;
2210915Sandreas.sandberg@arm.com# redistributions in binary form must reproduce the above copyright
2310915Sandreas.sandberg@arm.com# notice, this list of conditions and the following disclaimer in the
2410915Sandreas.sandberg@arm.com# documentation and/or other materials provided with the distribution;
2510915Sandreas.sandberg@arm.com# neither the name of the copyright holders nor the names of its
2610915Sandreas.sandberg@arm.com# contributors may be used to endorse or promote products derived from
2710915Sandreas.sandberg@arm.com# this software without specific prior written permission.
2810915Sandreas.sandberg@arm.com#
2910915Sandreas.sandberg@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
3010915Sandreas.sandberg@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
3110915Sandreas.sandberg@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
3210915Sandreas.sandberg@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
3310915Sandreas.sandberg@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3410915Sandreas.sandberg@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3510915Sandreas.sandberg@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3610915Sandreas.sandberg@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3710915Sandreas.sandberg@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3810915Sandreas.sandberg@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3910915Sandreas.sandberg@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4010915Sandreas.sandberg@arm.com#
4110915Sandreas.sandberg@arm.com# Authors: Stephen Hines
4210915Sandreas.sandberg@arm.com#          Ali Saidi
4310915Sandreas.sandberg@arm.com
4410915Sandreas.sandberg@arm.comImport('*')
4511294Sandreas.hansson@arm.com
4610915Sandreas.sandberg@arm.comif env['TARGET_ISA'] == 'arm':
4710915Sandreas.sandberg@arm.com# Workaround for bug in SCons version > 0.97d20071212
4810915Sandreas.sandberg@arm.com# Scons bug id: 2006 M5 Bug id: 308
4910915Sandreas.sandberg@arm.com    Dir('isa/formats')
5010915Sandreas.sandberg@arm.com    Source('decoder.cc')
5110915Sandreas.sandberg@arm.com    Source('faults.cc')
5210915Sandreas.sandberg@arm.com    Source('insts/branch.cc')
5310915Sandreas.sandberg@arm.com    Source('insts/branch64.cc')
5410915Sandreas.sandberg@arm.com    Source('insts/data64.cc')
5510915Sandreas.sandberg@arm.com    Source('insts/macromem.cc')
5610915Sandreas.sandberg@arm.com    Source('insts/mem.cc')
5710915Sandreas.sandberg@arm.com    Source('insts/mem64.cc')
5810915Sandreas.sandberg@arm.com    Source('insts/misc.cc')
5910915Sandreas.sandberg@arm.com    Source('insts/misc64.cc')
6010915Sandreas.sandberg@arm.com    Source('insts/pred_inst.cc')
6110915Sandreas.sandberg@arm.com    Source('insts/pseudo.cc')
6210915Sandreas.sandberg@arm.com    Source('insts/static_inst.cc')
6310915Sandreas.sandberg@arm.com    Source('insts/vfp.cc')
6410915Sandreas.sandberg@arm.com    Source('insts/fplib.cc')
65    Source('insts/crypto.cc')
66    Source('interrupts.cc')
67    Source('isa.cc')
68    Source('isa_device.cc')
69    Source('linux/linux.cc')
70    Source('linux/process.cc')
71    Source('linux/system.cc')
72    Source('freebsd/freebsd.cc')
73    Source('freebsd/process.cc')
74    Source('freebsd/system.cc')
75    Source('miscregs.cc')
76    Source('nativetrace.cc')
77    Source('pmu.cc')
78    Source('process.cc')
79    Source('remote_gdb.cc')
80    Source('semihosting.cc')
81    Source('stacktrace.cc')
82    Source('system.cc')
83    Source('table_walker.cc')
84    Source('stage2_mmu.cc')
85    Source('stage2_lookup.cc')
86    Source('tlb.cc')
87    Source('tlbi_op.cc')
88    Source('utility.cc')
89    Source('vtophys.cc')
90
91    SimObject('ArmInterrupts.py')
92    SimObject('ArmISA.py')
93    SimObject('ArmNativeTrace.py')
94    SimObject('ArmSemihosting.py')
95    SimObject('ArmSystem.py')
96    SimObject('ArmTLB.py')
97    SimObject('ArmPMU.py')
98
99    DebugFlag('Arm')
100    DebugFlag('Semihosting')
101    DebugFlag('Decoder', "Instructions returned by the predecoder")
102    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
103    DebugFlag('PMUVerbose', "Performance Monitor")
104    DebugFlag('TLBVerbose')
105
106    # Add files generated by the ISA description.
107    ISADesc('isa/main.isa', decoder_splits=3, exec_splits=6)
108
109    GdbXml('arm/arm-with-neon.xml', 'gdb_xml_arm_target')
110    GdbXml('arm/arm-core.xml', 'gdb_xml_arm_core')
111    GdbXml('arm/arm-vfpv3.xml', 'gdb_xml_arm_vfpv3')
112    GdbXml('aarch64.xml', 'gdb_xml_aarch64_target')
113    GdbXml('aarch64-core.xml', 'gdb_xml_aarch64_core')
114    GdbXml('aarch64-fpu.xml', 'gdb_xml_aarch64_fpu')
115