SConscript revision 6365
1196Sstever@eecs.umich.edu# -*- mode:python -*- 22Ssraasch@umich.edu 3196Sstever@eecs.umich.edu# Copyright (c) 2004-2005 The Regents of The University of Michigan 42Ssraasch@umich.edu# All rights reserved. 52Ssraasch@umich.edu# 6196Sstever@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 7196Sstever@eecs.umich.edu# modification, are permitted provided that the following conditions are 8196Sstever@eecs.umich.edu# met: redistributions of source code must retain the above copyright 9196Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 10196Sstever@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 11196Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 12196Sstever@eecs.umich.edu# documentation and/or other materials provided with the distribution; 13196Sstever@eecs.umich.edu# neither the name of the copyright holders nor the names of its 14196Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from 15196Sstever@eecs.umich.edu# this software without specific prior written permission. 162Ssraasch@umich.edu# 17196Sstever@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18196Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19196Sstever@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20196Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21196Sstever@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22196Sstever@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23196Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24196Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25196Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26196Sstever@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27196Sstever@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28196Sstever@eecs.umich.edu# 29196Sstever@eecs.umich.edu# Authors: Gabe Black 302Ssraasch@umich.edu# Steve Reinhardt 31196Sstever@eecs.umich.edu 32196Sstever@eecs.umich.eduImport('*') 33196Sstever@eecs.umich.edu 34196Sstever@eecs.umich.eduif env['TARGET_ISA'] == 'sparc': 35196Sstever@eecs.umich.edu Source('asi.cc') 36196Sstever@eecs.umich.edu Source('faults.cc') 37196Sstever@eecs.umich.edu Source('isa.cc') 38196Sstever@eecs.umich.edu Source('nativetrace.cc') 39196Sstever@eecs.umich.edu Source('pagetable.cc') 402Ssraasch@umich.edu Source('remote_gdb.cc') 412Ssraasch@umich.edu Source('tlb.cc') 42196Sstever@eecs.umich.edu Source('utility.cc') 432Ssraasch@umich.edu 44354Sstever@eecs.umich.edu SimObject('SparcNativeTrace.py') 45354Sstever@eecs.umich.edu 46354Sstever@eecs.umich.edu SimObject('SparcTLB.py') 47354Sstever@eecs.umich.edu TraceFlag('Sparc', "Generic SPARC ISA stuff") 48354Sstever@eecs.umich.edu TraceFlag('RegisterWindows', "Register window manipulation") 49354Sstever@eecs.umich.edu 50354Sstever@eecs.umich.edu if env['FULL_SYSTEM']: 51354Sstever@eecs.umich.edu SimObject('SparcSystem.py') 52354Sstever@eecs.umich.edu SimObject('SparcInterrupts.py') 53354Sstever@eecs.umich.edu 54354Sstever@eecs.umich.edu Source('interrupts.cc') 55196Sstever@eecs.umich.edu Source('stacktrace.cc') 56196Sstever@eecs.umich.edu Source('system.cc') 57354Sstever@eecs.umich.edu Source('ua2005.cc') 58354Sstever@eecs.umich.edu Source('vtophys.cc') 59354Sstever@eecs.umich.edu else: 60354Sstever@eecs.umich.edu Source('process.cc') 61354Sstever@eecs.umich.edu 62354Sstever@eecs.umich.edu Source('linux/linux.cc') 632Ssraasch@umich.edu Source('linux/process.cc') 64354Sstever@eecs.umich.edu Source('linux/syscalls.cc') 65354Sstever@eecs.umich.edu 66354Sstever@eecs.umich.edu Source('solaris/process.cc') 67354Sstever@eecs.umich.edu Source('solaris/solaris.cc') 68354Sstever@eecs.umich.edu 69354Sstever@eecs.umich.edu # Add in files generated by the ISA description. 70354Sstever@eecs.umich.edu isa_desc_files = env.ISADesc('isa/main.isa') 71354Sstever@eecs.umich.edu # Only non-header files need to be compiled. 722Ssraasch@umich.edu for f in isa_desc_files: 73354Sstever@eecs.umich.edu if not f.path.endswith('.hh'): 74354Sstever@eecs.umich.edu Source(f) 75354Sstever@eecs.umich.edu