SConscript revision 11320
12086SN/A# -*- mode:python -*-
22086SN/A
32086SN/A# Copyright (c) 2009, 2012-2013 ARM Limited
42086SN/A# All rights reserved.
52086SN/A#
62086SN/A# The license below extends only to copyright in the software and shall
72086SN/A# not be construed as granting a license to any other intellectual
82086SN/A# property including but not limited to intellectual property relating
92086SN/A# to a hardware implementation of the functionality of the software
102086SN/A# licensed hereunder.  You may use the software subject to the license
112086SN/A# terms below provided that you ensure that this notice is replicated
122086SN/A# unmodified and in its entirety in all distributions of the software,
132086SN/A# modified or unmodified, in source code or in binary form.
142086SN/A#
152086SN/A# Copyright (c) 2007-2008 The Florida State University
162086SN/A# All rights reserved.
172086SN/A#
182086SN/A# Redistribution and use in source and binary forms, with or without
192086SN/A# modification, are permitted provided that the following conditions are
202086SN/A# met: redistributions of source code must retain the above copyright
212086SN/A# notice, this list of conditions and the following disclaimer;
222086SN/A# redistributions in binary form must reproduce the above copyright
232086SN/A# notice, this list of conditions and the following disclaimer in the
242086SN/A# documentation and/or other materials provided with the distribution;
252086SN/A# neither the name of the copyright holders nor the names of its
262086SN/A# contributors may be used to endorse or promote products derived from
272086SN/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
302665Ssaidi@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
312086SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
324202Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
332086SN/A# 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,
369022Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
374202Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
388745Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
396313Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
408778Sgblack@eecs.umich.edu#
418778Sgblack@eecs.umich.edu# Authors: Stephen Hines
428778Sgblack@eecs.umich.edu#          Ali Saidi
436365Sgblack@eecs.umich.edu
444997Sgblack@eecs.umich.eduImport('*')
458778Sgblack@eecs.umich.edu
464202Sbinkertn@umich.eduif env['TARGET_ISA'] == 'arm':
478778Sgblack@eecs.umich.edu# Workaround for bug in SCons version > 0.97d20071212
488778Sgblack@eecs.umich.edu# Scons bug id: 2006 M5 Bug id: 308
498778Sgblack@eecs.umich.edu    Dir('isa/formats')
504997Sgblack@eecs.umich.edu    Source('decoder.cc')
518747Sgblack@eecs.umich.edu    Source('faults.cc')
524826Ssaidi@eecs.umich.edu    Source('insts/branch64.cc')
538760Sgblack@eecs.umich.edu    Source('insts/data64.cc')
542086SN/A    Source('insts/macromem.cc')
558745Sgblack@eecs.umich.edu    Source('insts/mem.cc')
569384SAndreas.Sandberg@arm.com    Source('insts/mem64.cc')
576365Sgblack@eecs.umich.edu    Source('insts/misc.cc')
588778Sgblack@eecs.umich.edu    Source('insts/misc64.cc')
598745Sgblack@eecs.umich.edu    Source('insts/pred_inst.cc')
606365Sgblack@eecs.umich.edu    Source('insts/pseudo.cc')
618335Snate@binkert.org    Source('insts/static_inst.cc')
628335Snate@binkert.org    Source('insts/vfp.cc')
634997Sgblack@eecs.umich.edu    Source('insts/fplib.cc')
6410196SCurtis.Dunham@arm.com    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