SConscript revision 10611
12929Sktlim@umich.edu# -*- mode:python -*-
22929Sktlim@umich.edu
32932Sktlim@umich.edu# Copyright (c) 2009, 2012-2013 ARM Limited
42929Sktlim@umich.edu# All rights reserved.
52929Sktlim@umich.edu#
62929Sktlim@umich.edu# The license below extends only to copyright in the software and shall
72929Sktlim@umich.edu# not be construed as granting a license to any other intellectual
82929Sktlim@umich.edu# property including but not limited to intellectual property relating
92929Sktlim@umich.edu# to a hardware implementation of the functionality of the software
102929Sktlim@umich.edu# licensed hereunder.  You may use the software subject to the license
112929Sktlim@umich.edu# terms below provided that you ensure that this notice is replicated
122929Sktlim@umich.edu# unmodified and in its entirety in all distributions of the software,
132929Sktlim@umich.edu# modified or unmodified, in source code or in binary form.
142929Sktlim@umich.edu#
152929Sktlim@umich.edu# Copyright (c) 2007-2008 The Florida State University
162929Sktlim@umich.edu# All rights reserved.
172929Sktlim@umich.edu#
182929Sktlim@umich.edu# Redistribution and use in source and binary forms, with or without
192929Sktlim@umich.edu# modification, are permitted provided that the following conditions are
202929Sktlim@umich.edu# met: redistributions of source code must retain the above copyright
212929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer;
222929Sktlim@umich.edu# redistributions in binary form must reproduce the above copyright
232929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer in the
242929Sktlim@umich.edu# documentation and/or other materials provided with the distribution;
252929Sktlim@umich.edu# neither the name of the copyright holders nor the names of its
262929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from
272929Sktlim@umich.edu# this software without specific prior written permission.
282932Sktlim@umich.edu#
292932Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
302932Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
312929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
326007Ssteve.reinhardt@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
332929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
342929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
352929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
362929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
372929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
382929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
392929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
402929Sktlim@umich.edu#
412929Sktlim@umich.edu# Authors: Stephen Hines
422929Sktlim@umich.edu#          Ali Saidi
432929Sktlim@umich.edu
442929Sktlim@umich.eduImport('*')
452929Sktlim@umich.edu
462929Sktlim@umich.eduif env['TARGET_ISA'] == 'arm':
476007Ssteve.reinhardt@amd.com# Workaround for bug in SCons version > 0.97d20071212
486007Ssteve.reinhardt@amd.com# Scons bug id: 2006 M5 Bug id: 308 
496007Ssteve.reinhardt@amd.com    Dir('isa/formats')
506007Ssteve.reinhardt@amd.com    Source('decoder.cc')
516007Ssteve.reinhardt@amd.com    Source('faults.cc')
526007Ssteve.reinhardt@amd.com    Source('insts/branch64.cc')
536007Ssteve.reinhardt@amd.com    Source('insts/data64.cc')
546007Ssteve.reinhardt@amd.com    Source('insts/macromem.cc')
556007Ssteve.reinhardt@amd.com    Source('insts/mem.cc')
566007Ssteve.reinhardt@amd.com    Source('insts/mem64.cc')
576007Ssteve.reinhardt@amd.com    Source('insts/misc.cc')
586007Ssteve.reinhardt@amd.com    Source('insts/misc64.cc')
596007Ssteve.reinhardt@amd.com    Source('insts/pred_inst.cc')
606007Ssteve.reinhardt@amd.com    Source('insts/pseudo.cc')
616007Ssteve.reinhardt@amd.com    Source('insts/static_inst.cc')
626007Ssteve.reinhardt@amd.com    Source('insts/vfp.cc')
636007Ssteve.reinhardt@amd.com    Source('insts/fplib.cc')
646007Ssteve.reinhardt@amd.com    Source('interrupts.cc')
656007Ssteve.reinhardt@amd.com    Source('isa.cc')
666007Ssteve.reinhardt@amd.com    Source('isa_device.cc')
676007Ssteve.reinhardt@amd.com    Source('linux/linux.cc')
686007Ssteve.reinhardt@amd.com    Source('linux/process.cc')
696007Ssteve.reinhardt@amd.com    Source('linux/system.cc')
706007Ssteve.reinhardt@amd.com    Source('miscregs.cc')
716007Ssteve.reinhardt@amd.com    Source('nativetrace.cc')
726007Ssteve.reinhardt@amd.com    Source('pmu.cc')
736007Ssteve.reinhardt@amd.com    Source('process.cc')
746007Ssteve.reinhardt@amd.com    Source('remote_gdb.cc')
756007Ssteve.reinhardt@amd.com    Source('stacktrace.cc')
762929Sktlim@umich.edu    Source('system.cc')
772929Sktlim@umich.edu    Source('table_walker.cc')
782929Sktlim@umich.edu    Source('stage2_mmu.cc')
796007Ssteve.reinhardt@amd.com    Source('stage2_lookup.cc')
806007Ssteve.reinhardt@amd.com    Source('tlb.cc')
816007Ssteve.reinhardt@amd.com    Source('utility.cc')
826007Ssteve.reinhardt@amd.com    Source('vtophys.cc')
836007Ssteve.reinhardt@amd.com
846007Ssteve.reinhardt@amd.com    SimObject('ArmInterrupts.py')
852929Sktlim@umich.edu    SimObject('ArmISA.py')
862929Sktlim@umich.edu    SimObject('ArmNativeTrace.py')
872929Sktlim@umich.edu    SimObject('ArmSystem.py')
882929Sktlim@umich.edu    SimObject('ArmTLB.py')
892929Sktlim@umich.edu    SimObject('ArmPMU.py')
906011Ssteve.reinhardt@amd.com
916007Ssteve.reinhardt@amd.com    DebugFlag('Arm')
926007Ssteve.reinhardt@amd.com    DebugFlag('Decoder', "Instructions returned by the predecoder")
936007Ssteve.reinhardt@amd.com    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
946007Ssteve.reinhardt@amd.com    DebugFlag('PMUVerbose', "Performance Monitor")
956007Ssteve.reinhardt@amd.com    DebugFlag('TLBVerbose')
966007Ssteve.reinhardt@amd.com
976007Ssteve.reinhardt@amd.com    # Add files generated by the ISA description.
986007Ssteve.reinhardt@amd.com    env.ISADesc('isa/main.isa')
996007Ssteve.reinhardt@amd.com