SConscript revision 8233
1955SN/A# -*- mode:python -*- 2955SN/A 31762SN/A# Copyright (c) 2004-2005 The Regents of The University of Michigan 4955SN/A# All rights reserved. 5955SN/A# 6955SN/A# Redistribution and use in source and binary forms, with or without 7955SN/A# modification, are permitted provided that the following conditions are 8955SN/A# met: redistributions of source code must retain the above copyright 9955SN/A# notice, this list of conditions and the following disclaimer; 10955SN/A# redistributions in binary form must reproduce the above copyright 11955SN/A# notice, this list of conditions and the following disclaimer in the 12955SN/A# documentation and/or other materials provided with the distribution; 13955SN/A# neither the name of the copyright holders nor the names of its 14955SN/A# contributors may be used to endorse or promote products derived from 15955SN/A# this software without specific prior written permission. 16955SN/A# 17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28955SN/A# 29955SN/A# Authors: Gabe Black 30955SN/A# Steve Reinhardt 311608SN/A 32955SN/AImport('*') 33955SN/A 34955SN/Aif env['TARGET_ISA'] == 'sparc': 35955SN/A Source('asi.cc') 36955SN/A Source('faults.cc') 37955SN/A Source('isa.cc') 38955SN/A Source('nativetrace.cc') 39955SN/A Source('pagetable.cc') 40955SN/A Source('remote_gdb.cc') 41955SN/A Source('tlb.cc') 42955SN/A Source('utility.cc') 43955SN/A 44955SN/A SimObject('SparcNativeTrace.py') 45955SN/A 462023SN/A SimObject('SparcTLB.py') 47955SN/A TraceFlag('Sparc', "Generic SPARC ISA stuff") 48955SN/A TraceFlag('RegisterWindows', "Register window manipulation") 49955SN/A 50955SN/A if env['FULL_SYSTEM']: 511310SN/A SimObject('SparcSystem.py') 52955SN/A SimObject('SparcInterrupts.py') 53955SN/A 54955SN/A Source('interrupts.cc') 55955SN/A Source('system.cc') 56955SN/A Source('ua2005.cc') 57955SN/A Source('vtophys.cc') 581031SN/A else: 59955SN/A Source('process.cc') 601388SN/A 61955SN/A Source('linux/linux.cc') 62955SN/A Source('linux/process.cc') 631296SN/A Source('linux/syscalls.cc') 64955SN/A 652609SN/A Source('solaris/process.cc') 66955SN/A Source('solaris/solaris.cc') 67955SN/A 68955SN/A # Add in files generated by the ISA description. 69955SN/A isa_desc_files = env.ISADesc('isa/main.isa') 70955SN/A # Only non-header files need to be compiled. 71955SN/A for f in isa_desc_files: 72955SN/A if not f.path.endswith('.hh'): 73955SN/A Source(f) 74955SN/A