SConscript revision 6515
16019Shines@cs.fsu.edu# -*- mode:python -*- 26019Shines@cs.fsu.edu 37100Sgblack@eecs.umich.edu# Copyright (c) 2004-2005 The Regents of The University of Michigan 47100Sgblack@eecs.umich.edu# All rights reserved. 57100Sgblack@eecs.umich.edu# 67100Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 77100Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are 87100Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright 97100Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 107100Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 117100Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 127100Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution; 137100Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its 147100Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 156019Shines@cs.fsu.edu# this software without specific prior written permission. 166019Shines@cs.fsu.edu# 176019Shines@cs.fsu.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 186019Shines@cs.fsu.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 196019Shines@cs.fsu.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 206019Shines@cs.fsu.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 216019Shines@cs.fsu.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 226019Shines@cs.fsu.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 236019Shines@cs.fsu.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 246019Shines@cs.fsu.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 256019Shines@cs.fsu.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 266019Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 276019Shines@cs.fsu.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 286019Shines@cs.fsu.edu# 296019Shines@cs.fsu.edu# Authors: Gabe Black 306019Shines@cs.fsu.edu# Steve Reinhardt 316019Shines@cs.fsu.edu 326019Shines@cs.fsu.eduImport('*') 336019Shines@cs.fsu.edu 346019Shines@cs.fsu.eduif env['TARGET_ISA'] == 'sparc': 356019Shines@cs.fsu.edu Source('asi.cc') 366019Shines@cs.fsu.edu Source('faults.cc') 376019Shines@cs.fsu.edu Source('isa.cc') 386019Shines@cs.fsu.edu Source('nativetrace.cc') 396019Shines@cs.fsu.edu Source('pagetable.cc') 406019Shines@cs.fsu.edu Source('remote_gdb.cc') 416019Shines@cs.fsu.edu Source('tlb.cc') 426757SAli.Saidi@ARM.com Source('utility.cc') 436019Shines@cs.fsu.edu 446019Shines@cs.fsu.edu SimObject('SparcNativeTrace.py') 456019Shines@cs.fsu.edu 466019Shines@cs.fsu.edu SimObject('SparcTLB.py') 476019Shines@cs.fsu.edu TraceFlag('Sparc', "Generic SPARC ISA stuff") 486019Shines@cs.fsu.edu TraceFlag('RegisterWindows', "Register window manipulation") 496019Shines@cs.fsu.edu 506019Shines@cs.fsu.edu if env['FULL_SYSTEM']: 517170Sgblack@eecs.umich.edu SimObject('SparcSystem.py') 526253Sgblack@eecs.umich.edu SimObject('SparcInterrupts.py') 537202Sgblack@eecs.umich.edu 546253Sgblack@eecs.umich.edu Source('interrupts.cc') 556253Sgblack@eecs.umich.edu Source('stacktrace.cc') 567396Sgblack@eecs.umich.edu Source('system.cc') 578745Sgblack@eecs.umich.edu Source('ua2005.cc') 587405SAli.Saidi@ARM.com Source('vtophys.cc') 598782Sgblack@eecs.umich.edu else: 608782Sgblack@eecs.umich.edu Source('process.cc') 618782Sgblack@eecs.umich.edu 627259Sgblack@eecs.umich.edu Source('linux/linux.cc') 638757Sgblack@eecs.umich.edu Source('linux/process.cc') 647423Sgblack@eecs.umich.edu Source('linux/syscalls.cc') 658782Sgblack@eecs.umich.edu 668757Sgblack@eecs.umich.edu Source('solaris/process.cc') 678777Sgblack@eecs.umich.edu Source('solaris/solaris.cc') 688782Sgblack@eecs.umich.edu 698756Sgblack@eecs.umich.edu # Add in files generated by the ISA description. 706019Shines@cs.fsu.edu isa_desc_files = env.ISADesc('isa/main.isa') 716757SAli.Saidi@ARM.com # Only non-header files need to be compiled. 728757Sgblack@eecs.umich.edu for f in isa_desc_files: 736019Shines@cs.fsu.edu if not f.path.endswith('.hh'): 748745Sgblack@eecs.umich.edu Source(f) 756397Sgblack@eecs.umich.edu