SConscript revision 13759
16019Shines@cs.fsu.edu# -*- mode:python -*- 26019Shines@cs.fsu.edu 313759Sgiacomo.gabrielli@arm.com# Copyright (c) 2009, 2012-2013, 2017-2018 ARM Limited 47100Sgblack@eecs.umich.edu# All rights reserved. 57100Sgblack@eecs.umich.edu# 67100Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall 77100Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual 87100Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating 97100Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software 107100Sgblack@eecs.umich.edu# licensed hereunder. You may use the software subject to the license 117100Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated 127100Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software, 137100Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form. 147100Sgblack@eecs.umich.edu# 156019Shines@cs.fsu.edu# Copyright (c) 2007-2008 The Florida State University 166019Shines@cs.fsu.edu# All rights reserved. 176019Shines@cs.fsu.edu# 186019Shines@cs.fsu.edu# Redistribution and use in source and binary forms, with or without 196019Shines@cs.fsu.edu# modification, are permitted provided that the following conditions are 206019Shines@cs.fsu.edu# met: redistributions of source code must retain the above copyright 216019Shines@cs.fsu.edu# notice, this list of conditions and the following disclaimer; 226019Shines@cs.fsu.edu# redistributions in binary form must reproduce the above copyright 236019Shines@cs.fsu.edu# notice, this list of conditions and the following disclaimer in the 246019Shines@cs.fsu.edu# documentation and/or other materials provided with the distribution; 256019Shines@cs.fsu.edu# neither the name of the copyright holders nor the names of its 266019Shines@cs.fsu.edu# contributors may be used to endorse or promote products derived from 276019Shines@cs.fsu.edu# this software without specific prior written permission. 286019Shines@cs.fsu.edu# 296019Shines@cs.fsu.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 306019Shines@cs.fsu.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 316019Shines@cs.fsu.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 326019Shines@cs.fsu.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 336019Shines@cs.fsu.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 346019Shines@cs.fsu.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 356019Shines@cs.fsu.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 366019Shines@cs.fsu.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 376019Shines@cs.fsu.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 386019Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 396019Shines@cs.fsu.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 406019Shines@cs.fsu.edu# 416019Shines@cs.fsu.edu# Authors: Stephen Hines 426757SAli.Saidi@ARM.com# Ali Saidi 436019Shines@cs.fsu.edu 446019Shines@cs.fsu.eduImport('*') 456019Shines@cs.fsu.edu 466019Shines@cs.fsu.eduif env['TARGET_ISA'] == 'arm': 476019Shines@cs.fsu.edu# Workaround for bug in SCons version > 0.97d20071212 4811320Ssteve.reinhardt@amd.com# Scons bug id: 2006 M5 Bug id: 308 496019Shines@cs.fsu.edu Dir('isa/formats') 509022Sgblack@eecs.umich.edu Source('decoder.cc') 516019Shines@cs.fsu.edu Source('faults.cc') 5212640Sgiacomo.travaglini@arm.com Source('insts/branch.cc') 5310037SARM gem5 Developers Source('insts/branch64.cc') 5410037SARM gem5 Developers Source('insts/data64.cc') 557170Sgblack@eecs.umich.edu Source('insts/macromem.cc') 566253Sgblack@eecs.umich.edu Source('insts/mem.cc') 5710037SARM gem5 Developers Source('insts/mem64.cc') 587202Sgblack@eecs.umich.edu Source('insts/misc.cc') 5910037SARM gem5 Developers Source('insts/misc64.cc') 606253Sgblack@eecs.umich.edu Source('insts/pred_inst.cc') 6110611SAndreas.Sandberg@ARM.com Source('insts/pseudo.cc') 626253Sgblack@eecs.umich.edu Source('insts/static_inst.cc') 6313759Sgiacomo.gabrielli@arm.com Source('insts/sve.cc') 647396Sgblack@eecs.umich.edu Source('insts/vfp.cc') 6510037SARM gem5 Developers Source('insts/fplib.cc') 6613168Smatt.horsnell@arm.com Source('insts/crypto.cc') 678745Sgblack@eecs.umich.edu Source('interrupts.cc') 687405SAli.Saidi@ARM.com Source('isa.cc') 6910461SAndreas.Sandberg@ARM.com Source('isa_device.cc') 708782Sgblack@eecs.umich.edu Source('linux/linux.cc') 718782Sgblack@eecs.umich.edu Source('linux/process.cc') 728782Sgblack@eecs.umich.edu Source('linux/system.cc') 7310810Sbr@bsdpad.com Source('freebsd/freebsd.cc') 7410810Sbr@bsdpad.com Source('freebsd/process.cc') 7510810Sbr@bsdpad.com Source('freebsd/system.cc') 767259Sgblack@eecs.umich.edu Source('miscregs.cc') 778757Sgblack@eecs.umich.edu Source('nativetrace.cc') 7810461SAndreas.Sandberg@ARM.com Source('pmu.cc') 798782Sgblack@eecs.umich.edu Source('process.cc') 808757Sgblack@eecs.umich.edu Source('remote_gdb.cc') 8112531Sandreas.sandberg@arm.com Source('semihosting.cc') 828777Sgblack@eecs.umich.edu Source('stacktrace.cc') 838782Sgblack@eecs.umich.edu Source('system.cc') 848756Sgblack@eecs.umich.edu Source('table_walker.cc') 8510037SARM gem5 Developers Source('stage2_mmu.cc') 8610037SARM gem5 Developers Source('stage2_lookup.cc') 876019Shines@cs.fsu.edu Source('tlb.cc') 8812605Sgiacomo.travaglini@arm.com Source('tlbi_op.cc') 896757SAli.Saidi@ARM.com Source('utility.cc') 908757Sgblack@eecs.umich.edu Source('vtophys.cc') 916019Shines@cs.fsu.edu 928745Sgblack@eecs.umich.edu SimObject('ArmInterrupts.py') 939384SAndreas.Sandberg@arm.com SimObject('ArmISA.py') 946397Sgblack@eecs.umich.edu SimObject('ArmNativeTrace.py') 9512531Sandreas.sandberg@arm.com SimObject('ArmSemihosting.py') 968782Sgblack@eecs.umich.edu SimObject('ArmSystem.py') 976019Shines@cs.fsu.edu SimObject('ArmTLB.py') 9810461SAndreas.Sandberg@ARM.com SimObject('ArmPMU.py') 996397Sgblack@eecs.umich.edu 1008335Snate@binkert.org DebugFlag('Arm') 10112531Sandreas.sandberg@arm.com DebugFlag('Semihosting') 1029023Sgblack@eecs.umich.edu DebugFlag('Decoder', "Instructions returned by the predecoder") 1039023Sgblack@eecs.umich.edu DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 10410461SAndreas.Sandberg@ARM.com DebugFlag('PMUVerbose', "Performance Monitor") 1058335Snate@binkert.org DebugFlag('TLBVerbose') 1066019Shines@cs.fsu.edu 10710196SCurtis.Dunham@arm.com # Add files generated by the ISA description. 10812222Sgabeblack@google.com ISADesc('isa/main.isa', decoder_splits=3, exec_splits=6) 10913579Sciro.santilli@arm.com 11013579Sciro.santilli@arm.com GdbXml('arm/arm-with-neon.xml', 'gdb_xml_arm_target') 11113579Sciro.santilli@arm.com GdbXml('arm/arm-core.xml', 'gdb_xml_arm_core') 11213579Sciro.santilli@arm.com GdbXml('arm/arm-vfpv3.xml', 'gdb_xml_arm_vfpv3') 11313579Sciro.santilli@arm.com GdbXml('aarch64.xml', 'gdb_xml_aarch64_target') 11413579Sciro.santilli@arm.com GdbXml('aarch64-core.xml', 'gdb_xml_aarch64_core') 11513579Sciro.santilli@arm.com GdbXml('aarch64-fpu.xml', 'gdb_xml_aarch64_fpu') 116