SConscript revision 9057:f5ee56466b91
13123Sgblack@eecs.umich.edu# -*- mode:python -*- 23123Sgblack@eecs.umich.edu 33123Sgblack@eecs.umich.edu# Copyright (c) 2004-2005 The Regents of The University of Michigan 43123Sgblack@eecs.umich.edu# All rights reserved. 53123Sgblack@eecs.umich.edu# 63123Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 73123Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are 83123Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright 93123Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 103123Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 113123Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 123123Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution; 133123Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its 143123Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 153123Sgblack@eecs.umich.edu# this software without specific prior written permission. 163123Sgblack@eecs.umich.edu# 173123Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 183123Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 193123Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 203123Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 213123Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 223123Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 233123Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 243123Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 253123Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 263123Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 273123Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 283123Sgblack@eecs.umich.edu# 293804Ssaidi@eecs.umich.edu# Authors: Gabe Black 303123Sgblack@eecs.umich.edu# Steve Reinhardt 313123Sgblack@eecs.umich.edu 323123Sgblack@eecs.umich.eduImport('*') 333123Sgblack@eecs.umich.edu 343123Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'sparc': 353123Sgblack@eecs.umich.edu Source('asi.cc') 363123Sgblack@eecs.umich.edu Source('decoder.cc') 377741Sgblack@eecs.umich.edu Source('faults.cc') 387741Sgblack@eecs.umich.edu Source('interrupts.cc') 397741Sgblack@eecs.umich.edu Source('isa.cc') 407741Sgblack@eecs.umich.edu Source('linux/linux.cc') 417741Sgblack@eecs.umich.edu Source('linux/process.cc') 427741Sgblack@eecs.umich.edu Source('linux/syscalls.cc') 437741Sgblack@eecs.umich.edu Source('nativetrace.cc') 447741Sgblack@eecs.umich.edu Source('pagetable.cc') 457741Sgblack@eecs.umich.edu Source('process.cc') 467741Sgblack@eecs.umich.edu Source('remote_gdb.cc') 477741Sgblack@eecs.umich.edu Source('solaris/process.cc') 487741Sgblack@eecs.umich.edu Source('solaris/solaris.cc') 493123Sgblack@eecs.umich.edu Source('system.cc') 507741Sgblack@eecs.umich.edu Source('tlb.cc') 517741Sgblack@eecs.umich.edu Source('ua2005.cc') 527741Sgblack@eecs.umich.edu Source('utility.cc') 537741Sgblack@eecs.umich.edu Source('vtophys.cc') 547741Sgblack@eecs.umich.edu 557741Sgblack@eecs.umich.edu SimObject('SparcInterrupts.py') 567741Sgblack@eecs.umich.edu SimObject('SparcNativeTrace.py') 577741Sgblack@eecs.umich.edu SimObject('SparcSystem.py') 587741Sgblack@eecs.umich.edu SimObject('SparcTLB.py') 597741Sgblack@eecs.umich.edu 607741Sgblack@eecs.umich.edu DebugFlag('Sparc', "Generic SPARC ISA stuff") 617741Sgblack@eecs.umich.edu DebugFlag('RegisterWindows', "Register window manipulation") 627741Sgblack@eecs.umich.edu 637741Sgblack@eecs.umich.edu # Add in files generated by the ISA description. 647741Sgblack@eecs.umich.edu isa_desc_files = env.ISADesc('isa/main.isa') 657741Sgblack@eecs.umich.edu # Only non-header files need to be compiled. 667741Sgblack@eecs.umich.edu for f in isa_desc_files: 677741Sgblack@eecs.umich.edu if not f.path.endswith('.hh'): 687741Sgblack@eecs.umich.edu Source(f) 697741Sgblack@eecs.umich.edu