SConscript revision 8747
112952Sgabeblack@google.com# -*- mode:python -*-
212952Sgabeblack@google.com
312952Sgabeblack@google.com# Copyright (c) 2004-2005 The Regents of The University of Michigan
412952Sgabeblack@google.com# All rights reserved.
512952Sgabeblack@google.com#
612952Sgabeblack@google.com# Redistribution and use in source and binary forms, with or without
712952Sgabeblack@google.com# modification, are permitted provided that the following conditions are
812952Sgabeblack@google.com# met: redistributions of source code must retain the above copyright
912952Sgabeblack@google.com# notice, this list of conditions and the following disclaimer;
1012952Sgabeblack@google.com# redistributions in binary form must reproduce the above copyright
1112952Sgabeblack@google.com# notice, this list of conditions and the following disclaimer in the
1212952Sgabeblack@google.com# documentation and/or other materials provided with the distribution;
1312952Sgabeblack@google.com# neither the name of the copyright holders nor the names of its
1412952Sgabeblack@google.com# contributors may be used to endorse or promote products derived from
1512952Sgabeblack@google.com# this software without specific prior written permission.
1612952Sgabeblack@google.com#
1712952Sgabeblack@google.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1812952Sgabeblack@google.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1912952Sgabeblack@google.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2012952Sgabeblack@google.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2112952Sgabeblack@google.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2212952Sgabeblack@google.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2312952Sgabeblack@google.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2412952Sgabeblack@google.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2512952Sgabeblack@google.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2612952Sgabeblack@google.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2712952Sgabeblack@google.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2812952Sgabeblack@google.com#
2912952Sgabeblack@google.com# Authors: Gabe Black
3012952Sgabeblack@google.com#          Steve Reinhardt
3112952Sgabeblack@google.com
3212952Sgabeblack@google.comImport('*')
3312952Sgabeblack@google.com
3412997Sgabeblack@google.comif env['TARGET_ISA'] == 'sparc':
3512957Sgabeblack@google.com    Source('asi.cc')
3612952Sgabeblack@google.com    Source('faults.cc')
3712952Sgabeblack@google.com    Source('interrupts.cc')
3812953Sgabeblack@google.com    Source('isa.cc')
3913285Sgabeblack@google.com    Source('nativetrace.cc')
4012952Sgabeblack@google.com    Source('pagetable.cc')
4113063Sgabeblack@google.com    Source('remote_gdb.cc')
4213206Sgabeblack@google.com    Source('tlb.cc')
4313288Sgabeblack@google.com    Source('ua2005.cc')
4412952Sgabeblack@google.com    Source('utility.cc')
4512952Sgabeblack@google.com
4612952Sgabeblack@google.com    SimObject('SparcInterrupts.py')
4712952Sgabeblack@google.com    SimObject('SparcNativeTrace.py')
4813196Sgabeblack@google.com    SimObject('SparcTLB.py')
4913196Sgabeblack@google.com
5013196Sgabeblack@google.com    DebugFlag('Sparc', "Generic SPARC ISA stuff")
5113196Sgabeblack@google.com    DebugFlag('RegisterWindows', "Register window manipulation")
5213196Sgabeblack@google.com
5313196Sgabeblack@google.com    if env['FULL_SYSTEM']:
5413196Sgabeblack@google.com        SimObject('SparcSystem.py')
5512952Sgabeblack@google.com
5612952Sgabeblack@google.com        Source('system.cc')
5712952Sgabeblack@google.com        Source('vtophys.cc')
5813175Sgabeblack@google.com    else:
5913175Sgabeblack@google.com        Source('process.cc')
6013175Sgabeblack@google.com
6113288Sgabeblack@google.com        Source('linux/linux.cc')
6213288Sgabeblack@google.com        Source('linux/process.cc')
6313288Sgabeblack@google.com        Source('linux/syscalls.cc')
6413087Sgabeblack@google.com
6512952Sgabeblack@google.com        Source('solaris/process.cc')
6612952Sgabeblack@google.com        Source('solaris/solaris.cc')
6712952Sgabeblack@google.com
6812961Sgabeblack@google.com    # Add in files generated by the ISA description.
6913093Sgabeblack@google.com    isa_desc_files = env.ISADesc('isa/main.isa')
7012952Sgabeblack@google.com    # Only non-header files need to be compiled.
7112952Sgabeblack@google.com    for f in isa_desc_files:
7212997Sgabeblack@google.com        if not f.path.endswith('.hh'):
7312952Sgabeblack@google.com            Source(f)
7412952Sgabeblack@google.com