SConscript revision 9036
18968SN/A# -*- mode:python -*-
28968SN/A
311066Snilay@cs.wisc.edu# Copyright (c) 2004-2005 The Regents of The University of Michigan
411066Snilay@cs.wisc.edu# All rights reserved.
511066Snilay@cs.wisc.edu#
68968SN/A# Redistribution and use in source and binary forms, with or without
711066Snilay@cs.wisc.edu# modification, are permitted provided that the following conditions are
811066Snilay@cs.wisc.edu# met: redistributions of source code must retain the above copyright
911066Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer;
1011066Snilay@cs.wisc.edu# redistributions in binary form must reproduce the above copyright
1111066Snilay@cs.wisc.edu# notice, this list of conditions and the following disclaimer in the
1211066Snilay@cs.wisc.edu# documentation and/or other materials provided with the distribution;
1311066Snilay@cs.wisc.edu# neither the name of the copyright holders nor the names of its
1410036SAli.Saidi@ARM.com# contributors may be used to endorse or promote products derived from
1510036SAli.Saidi@ARM.com# this software without specific prior written permission.
1611066Snilay@cs.wisc.edu#
1711066Snilay@cs.wisc.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1811066Snilay@cs.wisc.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1911066Snilay@cs.wisc.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2011066Snilay@cs.wisc.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2111066Snilay@cs.wisc.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2211066Snilay@cs.wisc.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2311066Snilay@cs.wisc.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2411066Snilay@cs.wisc.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2511066Snilay@cs.wisc.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2611066Snilay@cs.wisc.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2711066Snilay@cs.wisc.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2811066Snilay@cs.wisc.edu#
2911066Snilay@cs.wisc.edu# Authors: Gabe Black
3011066Snilay@cs.wisc.edu#          Steve Reinhardt
3111066Snilay@cs.wisc.edu
3211066Snilay@cs.wisc.eduImport('*')
3311066Snilay@cs.wisc.edu
3411066Snilay@cs.wisc.eduif env['TARGET_ISA'] == 'alpha':
3511066Snilay@cs.wisc.edu    Source('decoder.cc')
3611066Snilay@cs.wisc.edu    Source('ev5.cc')
3711066Snilay@cs.wisc.edu    Source('faults.cc')
3811066Snilay@cs.wisc.edu    Source('freebsd/system.cc')
3911066Snilay@cs.wisc.edu    Source('idle_event.cc')
4011066Snilay@cs.wisc.edu    Source('interrupts.cc')
4110526Snilay@cs.wisc.edu    Source('ipr.cc')
4211066Snilay@cs.wisc.edu    Source('isa.cc')
4311066Snilay@cs.wisc.edu    Source('kernel_stats.cc')
4411066Snilay@cs.wisc.edu    Source('linux/linux.cc')
4511066Snilay@cs.wisc.edu    Source('linux/process.cc')
4611066Snilay@cs.wisc.edu    Source('linux/system.cc')
4711066Snilay@cs.wisc.edu    Source('osfpal.cc')
4811066Snilay@cs.wisc.edu    Source('pagetable.cc')
4911066Snilay@cs.wisc.edu    Source('process.cc')
5011066Snilay@cs.wisc.edu    Source('regredir.cc')
5111066Snilay@cs.wisc.edu    Source('remote_gdb.cc')
5211066Snilay@cs.wisc.edu    Source('stacktrace.cc')
5311066Snilay@cs.wisc.edu    Source('system.cc')
5411066Snilay@cs.wisc.edu    Source('tlb.cc')
5511066Snilay@cs.wisc.edu    Source('tru64/process.cc')
5611066Snilay@cs.wisc.edu    Source('tru64/system.cc')
5711066Snilay@cs.wisc.edu    Source('tru64/tru64.cc')
5811066Snilay@cs.wisc.edu    Source('utility.cc')
5911066Snilay@cs.wisc.edu    Source('vtophys.cc')
6011066Snilay@cs.wisc.edu
6111066Snilay@cs.wisc.edu    SimObject('AlphaInterrupts.py')
6211066Snilay@cs.wisc.edu    SimObject('AlphaSystem.py')
6311066Snilay@cs.wisc.edu    SimObject('AlphaTLB.py')
6411066Snilay@cs.wisc.edu
6511066Snilay@cs.wisc.edu
6611066Snilay@cs.wisc.edu    # Add in files generated by the ISA description.
6711066Snilay@cs.wisc.edu    isa_desc_files = env.ISADesc('isa/main.isa')
6811066Snilay@cs.wisc.edu    # Only non-header files need to be compiled.
6911066Snilay@cs.wisc.edu    for f in isa_desc_files:
7011066Snilay@cs.wisc.edu        if not f.path.endswith('.hh'):
7111066Snilay@cs.wisc.edu            Source(f)
7211066Snilay@cs.wisc.edu