SConscript revision 6253
110448Snilay@cs.wisc.edu# -*- mode:python -*-
210448Snilay@cs.wisc.edu
310448Snilay@cs.wisc.edu# Copyright (c) 2007-2008 The Florida State University
410448Snilay@cs.wisc.edu# All rights reserved.
510448Snilay@cs.wisc.edu#
610448Snilay@cs.wisc.edu# Redistribution and use in source and binary forms, with or without
710448Snilay@cs.wisc.edu# modification, are permitted provided that the following conditions are
810448Snilay@cs.wisc.edu# met: redistributions of source code must retain the above copyright
910448Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer;
1010448Snilay@cs.wisc.edu# redistributions in binary form must reproduce the above copyright
1110448Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer in the
1210448Snilay@cs.wisc.edu# documentation and/or other materials provided with the distribution;
1310448Snilay@cs.wisc.edu# neither the name of the copyright holders nor the names of its
1410448Snilay@cs.wisc.edu# contributors may be used to endorse or promote products derived from
1510448Snilay@cs.wisc.edu# this software without specific prior written permission.
1610448Snilay@cs.wisc.edu#
1710448Snilay@cs.wisc.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1810448Snilay@cs.wisc.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1910448Snilay@cs.wisc.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2010448Snilay@cs.wisc.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2110448Snilay@cs.wisc.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2210447Snilay@cs.wisc.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2310447Snilay@cs.wisc.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2410447Snilay@cs.wisc.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2510447Snilay@cs.wisc.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2610447Snilay@cs.wisc.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2710447Snilay@cs.wisc.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2810447Snilay@cs.wisc.edu#
2910447Snilay@cs.wisc.edu# Authors: Stephen Hines
3010447Snilay@cs.wisc.edu
3110447Snilay@cs.wisc.eduImport('*')
3210447Snilay@cs.wisc.edu
3310447Snilay@cs.wisc.eduif env['TARGET_ISA'] == 'arm':
3410447Snilay@cs.wisc.edu# Workaround for bug in SCons version > 0.97d20071212
3510447Snilay@cs.wisc.edu# Scons bug id: 2006 M5 Bug id: 308 
3610447Snilay@cs.wisc.edu    Dir('isa/formats')
3710447Snilay@cs.wisc.edu    Source('faults.cc')
3810447Snilay@cs.wisc.edu    Source('insts/branch.cc')
3910447Snilay@cs.wisc.edu    Source('insts/mem.cc')
4010447Snilay@cs.wisc.edu    Source('insts/pred_inst.cc')
4110447Snilay@cs.wisc.edu    Source('insts/static_inst.cc')
4210447Snilay@cs.wisc.edu    Source('pagetable.cc')
43    Source('regfile/regfile.cc')
44    Source('tlb.cc')
45    Source('vtophys.cc')
46
47    SimObject('ArmTLB.py')
48    TraceFlag('Arm')
49
50    if env['FULL_SYSTEM']:
51        #Insert Full-System Files Here
52        pass
53    else:
54        Source('process.cc')
55        Source('linux/linux.cc')
56        Source('linux/process.cc')
57
58    # Add in files generated by the ISA description.
59    isa_desc_files = env.ISADesc('isa/main.isa')
60    # Only non-header files need to be compiled.
61    for f in isa_desc_files:
62        if not f.path.endswith('.hh'):
63            Source(f)
64
65