SConscript revision 12869
13534Sgblack@eecs.umich.edu# -*- mode:python -*-
23534Sgblack@eecs.umich.edu
33534Sgblack@eecs.umich.edu# Copyright (c) 2009, 2012-2013 ARM Limited
43534Sgblack@eecs.umich.edu# All rights reserved.
53534Sgblack@eecs.umich.edu#
63534Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall
73534Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
83534Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
93534Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
103534Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
113534Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
123534Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
133534Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
143534Sgblack@eecs.umich.edu#
153534Sgblack@eecs.umich.edu# Copyright (c) 2007-2008 The Florida State University
163534Sgblack@eecs.umich.edu# All rights reserved.
173534Sgblack@eecs.umich.edu#
183534Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
193534Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
203534Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
213534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
223534Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
233534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
243534Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
253534Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
263534Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
273534Sgblack@eecs.umich.edu# this software without specific prior written permission.
283534Sgblack@eecs.umich.edu#
293534Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
303534Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
313534Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
324202Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
333534Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3410069Sandreas.hansson@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3510069Sandreas.hansson@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3610069Sandreas.hansson@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3710069Sandreas.hansson@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3810069Sandreas.hansson@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
399850Sandreas.hansson@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
407768SAli.Saidi@ARM.com#
417768SAli.Saidi@ARM.com# Authors: Stephen Hines
428739Sgblack@eecs.umich.edu#          Ali Saidi
438739Sgblack@eecs.umich.edu
448739Sgblack@eecs.umich.eduImport('*')
458739Sgblack@eecs.umich.edu
468739Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'arm':
478739Sgblack@eecs.umich.edu# Workaround for bug in SCons version > 0.97d20071212
488739Sgblack@eecs.umich.edu# Scons bug id: 2006 M5 Bug id: 308
494486Sbinkertn@umich.edu    Dir('isa/formats')
508739Sgblack@eecs.umich.edu    Source('decoder.cc')
518739Sgblack@eecs.umich.edu    Source('faults.cc')
529016Sandreas.hansson@arm.com    Source('insts/branch.cc')
538739Sgblack@eecs.umich.edu    Source('insts/branch64.cc')
548739Sgblack@eecs.umich.edu    Source('insts/data64.cc')
558739Sgblack@eecs.umich.edu    Source('insts/macromem.cc')
568739Sgblack@eecs.umich.edu    Source('insts/mem.cc')
5711012Sandreas.sandberg@arm.com    Source('insts/mem64.cc')
588739Sgblack@eecs.umich.edu    Source('insts/misc.cc')
598739Sgblack@eecs.umich.edu    Source('insts/misc64.cc')
608739Sgblack@eecs.umich.edu    Source('insts/pred_inst.cc')
618739Sgblack@eecs.umich.edu    Source('insts/pseudo.cc')
628739Sgblack@eecs.umich.edu    Source('insts/static_inst.cc')
638739Sgblack@eecs.umich.edu    Source('insts/vfp.cc')
645192Ssaidi@eecs.umich.edu    Source('insts/fplib.cc')
658739Sgblack@eecs.umich.edu    Source('interrupts.cc')
668739Sgblack@eecs.umich.edu    Source('isa.cc')
678739Sgblack@eecs.umich.edu    Source('isa_device.cc')
688739Sgblack@eecs.umich.edu    Source('linux/linux.cc')
698739Sgblack@eecs.umich.edu    Source('linux/process.cc')
708739Sgblack@eecs.umich.edu    Source('linux/system.cc')
718739Sgblack@eecs.umich.edu    Source('freebsd/freebsd.cc')
728739Sgblack@eecs.umich.edu    Source('freebsd/process.cc')
738739Sgblack@eecs.umich.edu    Source('freebsd/system.cc')
748739Sgblack@eecs.umich.edu    Source('miscregs.cc')
758739Sgblack@eecs.umich.edu    Source('nativetrace.cc')
768739Sgblack@eecs.umich.edu    Source('pmu.cc')
775192Ssaidi@eecs.umich.edu    Source('process.cc')
788739Sgblack@eecs.umich.edu    Source('remote_gdb.cc')
798739Sgblack@eecs.umich.edu    Source('semihosting.cc')
80    Source('stacktrace.cc')
81    Source('system.cc')
82    Source('table_walker.cc')
83    Source('stage2_mmu.cc')
84    Source('stage2_lookup.cc')
85    Source('tlb.cc')
86    Source('tlbi_op.cc')
87    Source('utility.cc')
88    Source('vtophys.cc')
89
90    SimObject('ArmInterrupts.py')
91    SimObject('ArmISA.py')
92    SimObject('ArmNativeTrace.py')
93    SimObject('ArmSemihosting.py')
94    SimObject('ArmSystem.py')
95    SimObject('ArmTLB.py')
96    SimObject('ArmPMU.py')
97
98    DebugFlag('Arm')
99    DebugFlag('Semihosting')
100    DebugFlag('Decoder', "Instructions returned by the predecoder")
101    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
102    DebugFlag('PMUVerbose', "Performance Monitor")
103    DebugFlag('TLBVerbose')
104
105    # Add files generated by the ISA description.
106    ISADesc('isa/main.isa', decoder_splits=3, exec_splits=6)
107