SConscript revision 5342
112771Sqtt2@cornell.edu# -*- mode:python -*- 212771Sqtt2@cornell.edu 312771Sqtt2@cornell.edu# Copyright (c) 2004-2005 The Regents of The University of Michigan 412771Sqtt2@cornell.edu# All rights reserved. 512771Sqtt2@cornell.edu# 612771Sqtt2@cornell.edu# Redistribution and use in source and binary forms, with or without 712771Sqtt2@cornell.edu# modification, are permitted provided that the following conditions are 812771Sqtt2@cornell.edu# met: redistributions of source code must retain the above copyright 912771Sqtt2@cornell.edu# notice, this list of conditions and the following disclaimer; 1012771Sqtt2@cornell.edu# redistributions in binary form must reproduce the above copyright 1112771Sqtt2@cornell.edu# notice, this list of conditions and the following disclaimer in the 1212771Sqtt2@cornell.edu# documentation and/or other materials provided with the distribution; 1312771Sqtt2@cornell.edu# neither the name of the copyright holders nor the names of its 1412771Sqtt2@cornell.edu# contributors may be used to endorse or promote products derived from 1512771Sqtt2@cornell.edu# this software without specific prior written permission. 1612771Sqtt2@cornell.edu# 1712771Sqtt2@cornell.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1812771Sqtt2@cornell.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1912771Sqtt2@cornell.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2012771Sqtt2@cornell.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2112771Sqtt2@cornell.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2212771Sqtt2@cornell.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2312771Sqtt2@cornell.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2412771Sqtt2@cornell.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2512771Sqtt2@cornell.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2612771Sqtt2@cornell.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2712771Sqtt2@cornell.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2812771Sqtt2@cornell.edu# 2912771Sqtt2@cornell.edu# Authors: Gabe Black 3012771Sqtt2@cornell.edu# Steve Reinhardt 3112771Sqtt2@cornell.edu 3212771Sqtt2@cornell.eduImport('*') 3312771Sqtt2@cornell.edu 3412771Sqtt2@cornell.eduif env['TARGET_ISA'] == 'sparc': 3512771Sqtt2@cornell.edu Source('asi.cc') 3612771Sqtt2@cornell.edu Source('faults.cc') 3712771Sqtt2@cornell.edu Source('floatregfile.cc') 3812771Sqtt2@cornell.edu Source('intregfile.cc') 3912771Sqtt2@cornell.edu Source('miscregfile.cc') 4012771Sqtt2@cornell.edu Source('pagetable.cc') 4112771Sqtt2@cornell.edu Source('regfile.cc') 4212771Sqtt2@cornell.edu Source('remote_gdb.cc') 4312771Sqtt2@cornell.edu Source('tlb.cc') 4412771Sqtt2@cornell.edu Source('utility.cc') 4512771Sqtt2@cornell.edu 4612771Sqtt2@cornell.edu SimObject('SparcTLB.py') 4712771Sqtt2@cornell.edu TraceFlag('Sparc') 4812771Sqtt2@cornell.edu 4912771Sqtt2@cornell.edu if env['FULL_SYSTEM']: 5012771Sqtt2@cornell.edu SimObject('SparcSystem.py') 5112771Sqtt2@cornell.edu 5212771Sqtt2@cornell.edu Source('stacktrace.cc') 5312771Sqtt2@cornell.edu Source('system.cc') 5412771Sqtt2@cornell.edu Source('ua2005.cc') 5512771Sqtt2@cornell.edu Source('vtophys.cc') 5612771Sqtt2@cornell.edu else: 5712771Sqtt2@cornell.edu Source('process.cc') 5812771Sqtt2@cornell.edu 5912771Sqtt2@cornell.edu Source('linux/linux.cc') 6012771Sqtt2@cornell.edu Source('linux/process.cc') 6112771Sqtt2@cornell.edu Source('linux/syscalls.cc') 6212771Sqtt2@cornell.edu 6312771Sqtt2@cornell.edu Source('solaris/process.cc') 6412771Sqtt2@cornell.edu Source('solaris/solaris.cc') 6512771Sqtt2@cornell.edu 6612771Sqtt2@cornell.edu # Add in files generated by the ISA description. 6712771Sqtt2@cornell.edu isa_desc_files = env.ISADesc('isa/main.isa') 6812771Sqtt2@cornell.edu # Only non-header files need to be compiled. 6912771Sqtt2@cornell.edu for f in isa_desc_files: 7012771Sqtt2@cornell.edu if not f.path.endswith('.hh'): 7112771Sqtt2@cornell.edu Source(f) 7212771Sqtt2@cornell.edu