SConscript revision 13579:c892d017124f
111265Sandreas.sandberg@arm.com# -*- mode:python -*- 211265Sandreas.sandberg@arm.com 311265Sandreas.sandberg@arm.com# Copyright (c) 2009, 2012-2013, 2018 ARM Limited 411265Sandreas.sandberg@arm.com# All rights reserved. 511265Sandreas.sandberg@arm.com# 611265Sandreas.sandberg@arm.com# The license below extends only to copyright in the software and shall 711265Sandreas.sandberg@arm.com# not be construed as granting a license to any other intellectual 811265Sandreas.sandberg@arm.com# property including but not limited to intellectual property relating 911265Sandreas.sandberg@arm.com# to a hardware implementation of the functionality of the software 1011265Sandreas.sandberg@arm.com# licensed hereunder. You may use the software subject to the license 1111265Sandreas.sandberg@arm.com# terms below provided that you ensure that this notice is replicated 1211265Sandreas.sandberg@arm.com# unmodified and in its entirety in all distributions of the software, 1311265Sandreas.sandberg@arm.com# modified or unmodified, in source code or in binary form. 1411265Sandreas.sandberg@arm.com# 1511265Sandreas.sandberg@arm.com# Copyright (c) 2007-2008 The Florida State University 1611265Sandreas.sandberg@arm.com# All rights reserved. 1711265Sandreas.sandberg@arm.com# 1811265Sandreas.sandberg@arm.com# Redistribution and use in source and binary forms, with or without 1911265Sandreas.sandberg@arm.com# modification, are permitted provided that the following conditions are 2011265Sandreas.sandberg@arm.com# met: redistributions of source code must retain the above copyright 2111265Sandreas.sandberg@arm.com# notice, this list of conditions and the following disclaimer; 2211265Sandreas.sandberg@arm.com# redistributions in binary form must reproduce the above copyright 2311265Sandreas.sandberg@arm.com# notice, this list of conditions and the following disclaimer in the 2411265Sandreas.sandberg@arm.com# documentation and/or other materials provided with the distribution; 2511265Sandreas.sandberg@arm.com# neither the name of the copyright holders nor the names of its 2611265Sandreas.sandberg@arm.com# contributors may be used to endorse or promote products derived from 2711265Sandreas.sandberg@arm.com# this software without specific prior written permission. 2811265Sandreas.sandberg@arm.com# 2911265Sandreas.sandberg@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 3011265Sandreas.sandberg@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 3111265Sandreas.sandberg@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 3211265Sandreas.sandberg@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 3311265Sandreas.sandberg@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 3411265Sandreas.sandberg@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3511265Sandreas.sandberg@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 3611265Sandreas.sandberg@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 3711265Sandreas.sandberg@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3811265Sandreas.sandberg@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3911265Sandreas.sandberg@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 4011265Sandreas.sandberg@arm.com# 4111265Sandreas.sandberg@arm.com# Authors: Stephen Hines 4211265Sandreas.sandberg@arm.com# Ali Saidi 4311265Sandreas.sandberg@arm.com 4411265Sandreas.sandberg@arm.comImport('*') 4511265Sandreas.sandberg@arm.com 4611265Sandreas.sandberg@arm.comif env['TARGET_ISA'] == 'arm': 47# Workaround for bug in SCons version > 0.97d20071212 48# Scons bug id: 2006 M5 Bug id: 308 49 Dir('isa/formats') 50 Source('decoder.cc') 51 Source('faults.cc') 52 Source('insts/branch.cc') 53 Source('insts/branch64.cc') 54 Source('insts/data64.cc') 55 Source('insts/macromem.cc') 56 Source('insts/mem.cc') 57 Source('insts/mem64.cc') 58 Source('insts/misc.cc') 59 Source('insts/misc64.cc') 60 Source('insts/pred_inst.cc') 61 Source('insts/pseudo.cc') 62 Source('insts/static_inst.cc') 63 Source('insts/vfp.cc') 64 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