SConscript revision 12950
12139SN/A# -*- mode:python -*-
22139SN/A
32139SN/A# Copyright (c) 2009, 2012-2013 ARM Limited
42139SN/A# All rights reserved.
52139SN/A#
62139SN/A# The license below extends only to copyright in the software and shall
72139SN/A# not be construed as granting a license to any other intellectual
82139SN/A# property including but not limited to intellectual property relating
92139SN/A# to a hardware implementation of the functionality of the software
102139SN/A# licensed hereunder.  You may use the software subject to the license
112139SN/A# terms below provided that you ensure that this notice is replicated
122139SN/A# unmodified and in its entirety in all distributions of the software,
132139SN/A# modified or unmodified, in source code or in binary form.
142139SN/A#
152139SN/A# Copyright (c) 2007-2008 The Florida State University
162139SN/A# All rights reserved.
172139SN/A#
182139SN/A# Redistribution and use in source and binary forms, with or without
192139SN/A# modification, are permitted provided that the following conditions are
202139SN/A# met: redistributions of source code must retain the above copyright
212139SN/A# notice, this list of conditions and the following disclaimer;
222139SN/A# redistributions in binary form must reproduce the above copyright
232139SN/A# notice, this list of conditions and the following disclaimer in the
242139SN/A# documentation and/or other materials provided with the distribution;
252139SN/A# neither the name of the copyright holders nor the names of its
262139SN/A# contributors may be used to endorse or promote products derived from
272139SN/A# this software without specific prior written permission.
282665Ssaidi@eecs.umich.edu#
292665Ssaidi@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
302139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
314202Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
328961Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
332139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
344202Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
352152SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
362152SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
372139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
382139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
392139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
402139SN/A#
412139SN/A# Authors: Stephen Hines
422152SN/A#          Ali Saidi
432152SN/A
442139SN/AImport('*')
452139SN/A
462139SN/Aif env['TARGET_ISA'] == 'arm':
479020Sgblack@eecs.umich.edu# Workaround for bug in SCons version > 0.97d20071212
484781Snate@binkert.org# Scons bug id: 2006 M5 Bug id: 308
497799Sgblack@eecs.umich.edu    Dir('isa/formats')
504781Snate@binkert.org    Source('decoder.cc')
514781Snate@binkert.org    Source('faults.cc')
523170Sstever@eecs.umich.edu    Source('insts/branch.cc')
535664Sgblack@eecs.umich.edu    Source('insts/branch64.cc')
548105Sgblack@eecs.umich.edu    Source('insts/data64.cc')
556179Sksewell@umich.edu    Source('insts/macromem.cc')
564781Snate@binkert.org    Source('insts/mem.cc')
576329Sgblack@eecs.umich.edu    Source('insts/mem64.cc')
584781Snate@binkert.org    Source('insts/misc.cc')
594781Snate@binkert.org    Source('insts/misc64.cc')
604781Snate@binkert.org    Source('insts/pred_inst.cc')
614781Snate@binkert.org    Source('insts/pseudo.cc')
624781Snate@binkert.org    Source('insts/static_inst.cc')
634781Snate@binkert.org    Source('insts/vfp.cc')
642139SN/A    Source('insts/fplib.cc')
652139SN/A    Source('interrupts.cc')
663546Sgblack@eecs.umich.edu    Source('isa.cc')
674202Sbinkertn@umich.edu    Source('isa_device.cc')
682152SN/A    Source('linux/linux.cc')
692152SN/A    Source('linux/process.cc')
702152SN/A    Source('linux/system.cc')
712152SN/A    Source('freebsd/freebsd.cc')
722152SN/A    Source('freebsd/process.cc')
732152SN/A    Source('freebsd/system.cc')
742152SN/A    Source('miscregs.cc')
752152SN/A    Source('nativetrace.cc')
762152SN/A    Source('pmu.cc')
772152SN/A    Source('process.cc')
782152SN/A    Source('remote_gdb.cc')
792152SN/A    Source('semihosting.cc')
802504SN/A    Source('stacktrace.cc')
812504SN/A    Source('system.cc')
822504SN/A    Source('table_walker.cc')
832504SN/A    Source('stage2_mmu.cc')
842152SN/A    Source('stage2_lookup.cc')
852504SN/A    Source('tlb.cc')
862152SN/A    Source('tlbi_op.cc')
872152SN/A    Source('utility.cc')
882152SN/A    Source('vtophys.cc')
892152SN/A
902152SN/A    SimObject('ArmInterrupts.py')
912152SN/A    SimObject('ArmISA.py')
928584Sgblack@eecs.umich.edu    SimObject('ArmNativeTrace.py')
938584Sgblack@eecs.umich.edu    SimObject('ArmSemihosting.py')
946993Snate@binkert.org    SimObject('ArmSystem.py')
956993Snate@binkert.org    SimObject('ArmTLB.py')
966993Snate@binkert.org    SimObject('ArmPMU.py')
976993Snate@binkert.org
988887Sgeoffrey.blake@arm.com    DebugFlag('Arm')
996993Snate@binkert.org    DebugFlag('Semihosting')
1006993Snate@binkert.org    DebugFlag('Decoder', "Instructions returned by the predecoder")
1016993Snate@binkert.org    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
1026993Snate@binkert.org    DebugFlag('PMUVerbose', "Performance Monitor")
1036993Snate@binkert.org    DebugFlag('TLBVerbose')
1046993Snate@binkert.org
1056993Snate@binkert.org    # Add files generated by the ISA description.
1068584Sgblack@eecs.umich.edu    ISADesc('isa/main.isa', decoder_splits=3, exec_splits=6)
1078584Sgblack@eecs.umich.edu