SConscript revision 10915
13546Sgblack@eecs.umich.edu# -*- mode:python -*-
23546Sgblack@eecs.umich.edu
33546Sgblack@eecs.umich.edu# Copyright (c) 2009, 2012-2013 ARM Limited
43546Sgblack@eecs.umich.edu# All rights reserved.
53546Sgblack@eecs.umich.edu#
63546Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall
73546Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
83546Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
93546Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
103546Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
113546Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
123546Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
133546Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
143546Sgblack@eecs.umich.edu#
153546Sgblack@eecs.umich.edu# Copyright (c) 2007-2008 The Florida State University
163546Sgblack@eecs.umich.edu# All rights reserved.
173546Sgblack@eecs.umich.edu#
183546Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
193546Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
203546Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
213546Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
223546Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
233546Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
243546Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
253546Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
263546Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
273546Sgblack@eecs.umich.edu# this software without specific prior written permission.
283546Sgblack@eecs.umich.edu#
293546Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
303546Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
314202Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
323546Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
334202Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
344202Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
354202Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
363546Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
375192Ssaidi@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
385192Ssaidi@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
395192Ssaidi@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
404202Sbinkertn@umich.edu#
414202Sbinkertn@umich.edu# Authors: Stephen Hines
424202Sbinkertn@umich.edu#          Ali Saidi
435406Ssaidi@eecs.umich.edu
445406Ssaidi@eecs.umich.eduImport('*')
455406Ssaidi@eecs.umich.edu
465406Ssaidi@eecs.umich.eduif env['TARGET_ISA'] == 'arm':
473546Sgblack@eecs.umich.edu# Workaround for bug in SCons version > 0.97d20071212
484202Sbinkertn@umich.edu# Scons bug id: 2006 M5 Bug id: 308 
494202Sbinkertn@umich.edu    Dir('isa/formats')
504202Sbinkertn@umich.edu    Source('decoder.cc')
514202Sbinkertn@umich.edu    Source('faults.cc')
524202Sbinkertn@umich.edu    Source('insts/branch64.cc')
535192Ssaidi@eecs.umich.edu    Source('insts/data64.cc')
545192Ssaidi@eecs.umich.edu    Source('insts/macromem.cc')
555401Ssaidi@eecs.umich.edu    Source('insts/mem.cc')
565401Ssaidi@eecs.umich.edu    Source('insts/mem64.cc')
575401Ssaidi@eecs.umich.edu    Source('insts/misc.cc')
585401Ssaidi@eecs.umich.edu    Source('insts/misc64.cc')
595401Ssaidi@eecs.umich.edu    Source('insts/pred_inst.cc')
605401Ssaidi@eecs.umich.edu    Source('insts/pseudo.cc')
615403Shines@cs.fsu.edu    Source('insts/static_inst.cc')
625403Shines@cs.fsu.edu    Source('insts/vfp.cc')
63    Source('insts/fplib.cc')
64    Source('interrupts.cc')
65    Source('isa.cc')
66    Source('isa_device.cc')
67    Source('linux/linux.cc')
68    Source('linux/process.cc')
69    Source('linux/system.cc')
70    Source('freebsd/freebsd.cc')
71    Source('freebsd/process.cc')
72    Source('freebsd/system.cc')
73    Source('miscregs.cc')
74    Source('nativetrace.cc')
75    Source('pmu.cc')
76    Source('process.cc')
77    Source('remote_gdb.cc')
78    Source('stacktrace.cc')
79    Source('system.cc')
80    Source('table_walker.cc')
81    Source('stage2_mmu.cc')
82    Source('stage2_lookup.cc')
83    Source('tlb.cc')
84    Source('utility.cc')
85    Source('vtophys.cc')
86
87    SimObject('ArmInterrupts.py')
88    SimObject('ArmISA.py')
89    SimObject('ArmNativeTrace.py')
90    SimObject('ArmSystem.py')
91    SimObject('ArmTLB.py')
92    SimObject('ArmPMU.py')
93
94    DebugFlag('Arm')
95    DebugFlag('Decoder', "Instructions returned by the predecoder")
96    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
97    DebugFlag('PMUVerbose', "Performance Monitor")
98    DebugFlag('TLBVerbose')
99
100    # Add files generated by the ISA description.
101    env.ISADesc('isa/main.isa')
102