SConscript revision 7624
18528SN/A# -*- mode:python -*-
28528SN/A
38528SN/A# Copyright (c) 2009 ARM Limited
49988Snilay@cs.wisc.edu# All rights reserved.
58835SAli.Saidi@ARM.com#
69988Snilay@cs.wisc.edu# The license below extends only to copyright in the software and shall
78528SN/A# not be construed as granting a license to any other intellectual
88528SN/A# property including but not limited to intellectual property relating
98528SN/A# to a hardware implementation of the functionality of the software
108528SN/A# licensed hereunder.  You may use the software subject to the license
118528SN/A# terms below provided that you ensure that this notice is replicated
128528SN/A# unmodified and in its entirety in all distributions of the software,
1310315Snilay@cs.wisc.edu# modified or unmodified, in source code or in binary form.
1410513SAli.Saidi@ARM.com#
1511014Sandreas.sandberg@arm.com# Copyright (c) 2007-2008 The Florida State University
1610513SAli.Saidi@ARM.com# All rights reserved.
179885Sstever@gmail.com#
189885Sstever@gmail.com# Redistribution and use in source and binary forms, with or without
1911014Sandreas.sandberg@arm.com# modification, are permitted provided that the following conditions are
209055Ssaidi@eecs.umich.edu# met: redistributions of source code must retain the above copyright
219449SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer;
229988Snilay@cs.wisc.edu# redistributions in binary form must reproduce the above copyright
2310513SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the
2410513SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution;
2510038SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its
2610038SAli.Saidi@ARM.com# contributors may be used to endorse or promote products derived from
2710038SAli.Saidi@ARM.com# this software without specific prior written permission.
2810038SAli.Saidi@ARM.com#
2910038SAli.Saidi@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
308528SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
3111014Sandreas.sandberg@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
3210315Snilay@cs.wisc.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
338528SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3410513SAli.Saidi@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3510513SAli.Saidi@ARM.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
368528SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3710513SAli.Saidi@ARM.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3810636Snilay@cs.wisc.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3910736Snilay@cs.wisc.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
409079SAli.Saidi@ARM.com#
418721SN/A# Authors: Stephen Hines
429885Sstever@gmail.com#          Ali Saidi
439885Sstever@gmail.com
4410038SAli.Saidi@ARM.comImport('*')
4511014Sandreas.sandberg@arm.com
4610038SAli.Saidi@ARM.comif env['TARGET_ISA'] == 'arm':
478528SN/A# Workaround for bug in SCons version > 0.97d20071212
488528SN/A# Scons bug id: 2006 M5 Bug id: 308 
498528SN/A    Dir('isa/formats')
508528SN/A    Source('faults.cc')
518528SN/A    Source('insts/macromem.cc')
528528SN/A    Source('insts/mem.cc')
538528SN/A    Source('insts/misc.cc')
548528SN/A    Source('insts/pred_inst.cc')
5510513SAli.Saidi@ARM.com    Source('insts/static_inst.cc')
568528SN/A    Source('insts/vfp.cc')
578528SN/A    Source('isa.cc')
588528SN/A    Source('miscregs.cc')
599885Sstever@gmail.com    Source('predecoder.cc')
608528SN/A    Source('nativetrace.cc')
619988Snilay@cs.wisc.edu    Source('tlb.cc')
6210513SAli.Saidi@ARM.com    Source('vtophys.cc')
638721SN/A    Source('utility.cc')
648721SN/A
658891SAli.Saidi@ARM.com    SimObject('ArmNativeTrace.py')
668891SAli.Saidi@ARM.com    SimObject('ArmTLB.py')
678528SN/A
688528SN/A    TraceFlag('Arm')
698528SN/A    TraceFlag('TLBVerbose')
708528SN/A    TraceFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
718528SN/A    TraceFlag('Predecoder', "Instructions returned by the predecoder")
728528SN/A    if env['FULL_SYSTEM']:
739988Snilay@cs.wisc.edu        Source('interrupts.cc')
748528SN/A        Source('stacktrace.cc')
758528SN/A        Source('system.cc')
768528SN/A        Source('linux/system.cc')
778528SN/A        Source('table_walker.cc')
788528SN/A        
798528SN/A        SimObject('ArmInterrupts.py')
809988Snilay@cs.wisc.edu        SimObject('ArmSystem.py')
818528SN/A    else:
828528SN/A        Source('process.cc')
838528SN/A        Source('linux/linux.cc')
848528SN/A        Source('linux/process.cc')
858528SN/A
868528SN/A    # Add in files generated by the ISA description.
879988Snilay@cs.wisc.edu    isa_desc_files = env.ISADesc('isa/main.isa')
8811014Sandreas.sandberg@arm.com    # Only non-header files need to be compiled.
898528SN/A    for f in isa_desc_files:
908528SN/A        if not f.path.endswith('.hh'):
919885Sstever@gmail.com            Source(f)
929885Sstever@gmail.com
939885Sstever@gmail.com