SConscript revision 13759
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2009, 2012-2013, 2017-2018 ARM Limited
4955SN/A# All rights reserved.
5955SN/A#
6955SN/A# The license below extends only to copyright in the software and shall
7955SN/A# not be construed as granting a license to any other intellectual
8955SN/A# property including but not limited to intellectual property relating
9955SN/A# to a hardware implementation of the functionality of the software
10955SN/A# licensed hereunder.  You may use the software subject to the license
11955SN/A# terms below provided that you ensure that this notice is replicated
12955SN/A# unmodified and in its entirety in all distributions of the software,
13955SN/A# modified or unmodified, in source code or in binary form.
14955SN/A#
15955SN/A# Copyright (c) 2007-2008 The Florida State University
16955SN/A# All rights reserved.
17955SN/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.
282665Ssaidi@eecs.umich.edu#
294762Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
3112563Sgabeblack@google.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
3212563Sgabeblack@google.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
335522Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
346143Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3512371Sgabeblack@google.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
364762Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
375522Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
395522Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4011974Sgabeblack@google.com#
41955SN/A# Authors: Stephen Hines
425522Snate@binkert.org#          Ali Saidi
434202Sbinkertn@umich.edu
445742Snate@binkert.orgImport('*')
45955SN/A
464381Sbinkertn@umich.eduif env['TARGET_ISA'] == 'arm':
474381Sbinkertn@umich.edu# Workaround for bug in SCons version > 0.97d20071212
4812246Sgabeblack@google.com# Scons bug id: 2006 M5 Bug id: 308
4912246Sgabeblack@google.com    Dir('isa/formats')
508334Snate@binkert.org    Source('decoder.cc')
51955SN/A    Source('faults.cc')
52955SN/A    Source('insts/branch.cc')
534202Sbinkertn@umich.edu    Source('insts/branch64.cc')
54955SN/A    Source('insts/data64.cc')
554382Sbinkertn@umich.edu    Source('insts/macromem.cc')
564382Sbinkertn@umich.edu    Source('insts/mem.cc')
574382Sbinkertn@umich.edu    Source('insts/mem64.cc')
586654Snate@binkert.org    Source('insts/misc.cc')
595517Snate@binkert.org    Source('insts/misc64.cc')
608614Sgblack@eecs.umich.edu    Source('insts/pred_inst.cc')
617674Snate@binkert.org    Source('insts/pseudo.cc')
626143Snate@binkert.org    Source('insts/static_inst.cc')
636143Snate@binkert.org    Source('insts/sve.cc')
646143Snate@binkert.org    Source('insts/vfp.cc')
6512302Sgabeblack@google.com    Source('insts/fplib.cc')
6612302Sgabeblack@google.com    Source('insts/crypto.cc')
6712302Sgabeblack@google.com    Source('interrupts.cc')
6812371Sgabeblack@google.com    Source('isa.cc')
6912371Sgabeblack@google.com    Source('isa_device.cc')
7012371Sgabeblack@google.com    Source('linux/linux.cc')
7112371Sgabeblack@google.com    Source('linux/process.cc')
7212371Sgabeblack@google.com    Source('linux/system.cc')
7312371Sgabeblack@google.com    Source('freebsd/freebsd.cc')
7412371Sgabeblack@google.com    Source('freebsd/process.cc')
7512371Sgabeblack@google.com    Source('freebsd/system.cc')
7612371Sgabeblack@google.com    Source('miscregs.cc')
7712371Sgabeblack@google.com    Source('nativetrace.cc')
7812371Sgabeblack@google.com    Source('pmu.cc')
7912371Sgabeblack@google.com    Source('process.cc')
8012371Sgabeblack@google.com    Source('remote_gdb.cc')
8112371Sgabeblack@google.com    Source('semihosting.cc')
8212371Sgabeblack@google.com    Source('stacktrace.cc')
8312371Sgabeblack@google.com    Source('system.cc')
8412371Sgabeblack@google.com    Source('table_walker.cc')
8512371Sgabeblack@google.com    Source('stage2_mmu.cc')
8612371Sgabeblack@google.com    Source('stage2_lookup.cc')
8712371Sgabeblack@google.com    Source('tlb.cc')
8812371Sgabeblack@google.com    Source('tlbi_op.cc')
8912371Sgabeblack@google.com    Source('utility.cc')
9012371Sgabeblack@google.com    Source('vtophys.cc')
9112371Sgabeblack@google.com
9212371Sgabeblack@google.com    SimObject('ArmInterrupts.py')
9312371Sgabeblack@google.com    SimObject('ArmISA.py')
9412371Sgabeblack@google.com    SimObject('ArmNativeTrace.py')
9512371Sgabeblack@google.com    SimObject('ArmSemihosting.py')
9612371Sgabeblack@google.com    SimObject('ArmSystem.py')
9712371Sgabeblack@google.com    SimObject('ArmTLB.py')
9812371Sgabeblack@google.com    SimObject('ArmPMU.py')
9912371Sgabeblack@google.com
10012371Sgabeblack@google.com    DebugFlag('Arm')
10112371Sgabeblack@google.com    DebugFlag('Semihosting')
10212371Sgabeblack@google.com    DebugFlag('Decoder', "Instructions returned by the predecoder")
10312371Sgabeblack@google.com    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
10412371Sgabeblack@google.com    DebugFlag('PMUVerbose', "Performance Monitor")
10512371Sgabeblack@google.com    DebugFlag('TLBVerbose')
10612371Sgabeblack@google.com
10712371Sgabeblack@google.com    # Add files generated by the ISA description.
10812371Sgabeblack@google.com    ISADesc('isa/main.isa', decoder_splits=3, exec_splits=6)
10912371Sgabeblack@google.com
11012371Sgabeblack@google.com    GdbXml('arm/arm-with-neon.xml', 'gdb_xml_arm_target')
11112371Sgabeblack@google.com    GdbXml('arm/arm-core.xml', 'gdb_xml_arm_core')
11212371Sgabeblack@google.com    GdbXml('arm/arm-vfpv3.xml', 'gdb_xml_arm_vfpv3')
11312371Sgabeblack@google.com    GdbXml('aarch64.xml', 'gdb_xml_aarch64_target')
11412371Sgabeblack@google.com    GdbXml('aarch64-core.xml', 'gdb_xml_aarch64_core')
11512302Sgabeblack@google.com    GdbXml('aarch64-fpu.xml', 'gdb_xml_aarch64_fpu')
11612371Sgabeblack@google.com