SConscript revision 10553
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2009, 2012-2013 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
315522Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
326143Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
334762Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
345522Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
35955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
365522Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
385522Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
394202Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
405742Snate@binkert.org#
41955SN/A# Authors: Stephen Hines
424381Sbinkertn@umich.edu#          Ali Saidi
434381Sbinkertn@umich.edu
44955SN/AImport('*')
45955SN/A
46955SN/Aif env['TARGET_ISA'] == 'arm':
474202Sbinkertn@umich.edu# Workaround for bug in SCons version > 0.97d20071212
48955SN/A# Scons bug id: 2006 M5 Bug id: 308 
494382Sbinkertn@umich.edu    Dir('isa/formats')
504382Sbinkertn@umich.edu    Source('decoder.cc')
514382Sbinkertn@umich.edu    Source('faults.cc')
526654Snate@binkert.org    Source('insts/branch64.cc')
535517Snate@binkert.org    Source('insts/data64.cc')
546143Snate@binkert.org    Source('insts/macromem.cc')
556143Snate@binkert.org    Source('insts/mem.cc')
566143Snate@binkert.org    Source('insts/mem64.cc')
576143Snate@binkert.org    Source('insts/misc.cc')
586143Snate@binkert.org    Source('insts/misc64.cc')
596143Snate@binkert.org    Source('insts/pred_inst.cc')
606143Snate@binkert.org    Source('insts/static_inst.cc')
616143Snate@binkert.org    Source('insts/vfp.cc')
626143Snate@binkert.org    Source('insts/fplib.cc')
636143Snate@binkert.org    Source('interrupts.cc')
646143Snate@binkert.org    Source('isa.cc')
656143Snate@binkert.org    Source('isa_device.cc')
666143Snate@binkert.org    Source('linux/linux.cc')
676143Snate@binkert.org    Source('linux/process.cc')
686143Snate@binkert.org    Source('linux/system.cc')
694762Snate@binkert.org    Source('miscregs.cc')
706143Snate@binkert.org    Source('nativetrace.cc')
716143Snate@binkert.org    Source('pmu.cc')
726143Snate@binkert.org    Source('process.cc')
736143Snate@binkert.org    Source('remote_gdb.cc')
746143Snate@binkert.org    Source('stacktrace.cc')
756143Snate@binkert.org    Source('system.cc')
766143Snate@binkert.org    Source('table_walker.cc')
776143Snate@binkert.org    Source('stage2_mmu.cc')
786143Snate@binkert.org    Source('stage2_lookup.cc')
796143Snate@binkert.org    Source('tlb.cc')
806143Snate@binkert.org    Source('utility.cc')
816143Snate@binkert.org    Source('vtophys.cc')
826143Snate@binkert.org
836143Snate@binkert.org    SimObject('ArmInterrupts.py')
846143Snate@binkert.org    SimObject('ArmISA.py')
856143Snate@binkert.org    SimObject('ArmNativeTrace.py')
866143Snate@binkert.org    SimObject('ArmSystem.py')
876143Snate@binkert.org    SimObject('ArmTLB.py')
886143Snate@binkert.org    SimObject('ArmPMU.py')
896143Snate@binkert.org
906143Snate@binkert.org    DebugFlag('Arm')
917065Snate@binkert.org    DebugFlag('Decoder', "Instructions returned by the predecoder")
926143Snate@binkert.org    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
936143Snate@binkert.org    DebugFlag('PMUVerbose', "Performance Monitor")
946143Snate@binkert.org    DebugFlag('TLBVerbose')
956143Snate@binkert.org
966143Snate@binkert.org    # Add files generated by the ISA description.
976143Snate@binkert.org    env.ISADesc('isa/main.isa')
986143Snate@binkert.org