SConscript revision 10810
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
322929Sktlim@umich.edu# 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':
472929Sktlim@umich.edu# Workaround for bug in SCons version > 0.97d20071212
482929Sktlim@umich.edu# Scons bug id: 2006 M5 Bug id: 308 
492929Sktlim@umich.edu    Dir('isa/formats')
502929Sktlim@umich.edu    Source('decoder.cc')
512929Sktlim@umich.edu    Source('faults.cc')
522929Sktlim@umich.edu    Source('insts/branch64.cc')
532929Sktlim@umich.edu    Source('insts/data64.cc')
542929Sktlim@umich.edu    Source('insts/macromem.cc')
552929Sktlim@umich.edu    Source('insts/mem.cc')
562929Sktlim@umich.edu    Source('insts/mem64.cc')
572929Sktlim@umich.edu    Source('insts/misc.cc')
582929Sktlim@umich.edu    Source('insts/misc64.cc')
592929Sktlim@umich.edu    Source('insts/pred_inst.cc')
602929Sktlim@umich.edu    Source('insts/pseudo.cc')
612929Sktlim@umich.edu    Source('insts/static_inst.cc')
622929Sktlim@umich.edu    Source('insts/vfp.cc')
632929Sktlim@umich.edu    Source('insts/fplib.cc')
643020Sstever@eecs.umich.edu    Source('interrupts.cc')
653020Sstever@eecs.umich.edu    Source('isa.cc')
663020Sstever@eecs.umich.edu    Source('isa_device.cc')
672929Sktlim@umich.edu    Source('linux/linux.cc')
682929Sktlim@umich.edu    Source('linux/process.cc')
693021Sstever@eecs.umich.edu    Source('linux/system.cc')
702929Sktlim@umich.edu    Source('freebsd/freebsd.cc')
712929Sktlim@umich.edu    Source('freebsd/process.cc')
722929Sktlim@umich.edu    Source('freebsd/system.cc')
732929Sktlim@umich.edu    Source('miscregs.cc')
742929Sktlim@umich.edu    Source('nativetrace.cc')
752929Sktlim@umich.edu    Source('pmu.cc')
762929Sktlim@umich.edu    Source('process.cc')
772929Sktlim@umich.edu    Source('remote_gdb.cc')
782929Sktlim@umich.edu    Source('stacktrace.cc')
792929Sktlim@umich.edu    Source('system.cc')
802929Sktlim@umich.edu    Source('table_walker.cc')
812929Sktlim@umich.edu    Source('stage2_mmu.cc')
822929Sktlim@umich.edu    Source('stage2_lookup.cc')
832929Sktlim@umich.edu    Source('tlb.cc')
842929Sktlim@umich.edu    Source('utility.cc')
852929Sktlim@umich.edu    Source('vtophys.cc')
862929Sktlim@umich.edu
872929Sktlim@umich.edu    SimObject('ArmInterrupts.py')
882929Sktlim@umich.edu    SimObject('ArmISA.py')
892929Sktlim@umich.edu    SimObject('ArmNativeTrace.py')
902929Sktlim@umich.edu    SimObject('ArmSystem.py')
912929Sktlim@umich.edu    SimObject('ArmTLB.py')
922929Sktlim@umich.edu    SimObject('ArmPMU.py')
932929Sktlim@umich.edu
942929Sktlim@umich.edu    DebugFlag('Arm')
952929Sktlim@umich.edu    DebugFlag('Decoder', "Instructions returned by the predecoder")
962929Sktlim@umich.edu    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
972929Sktlim@umich.edu    DebugFlag('PMUVerbose', "Performance Monitor")
982929Sktlim@umich.edu    DebugFlag('TLBVerbose')
992929Sktlim@umich.edu
1002929Sktlim@umich.edu    # Add files generated by the ISA description.
1012929Sktlim@umich.edu    env.ISADesc('isa/main.isa')
1022929Sktlim@umich.edu