SConscript revision 5647
12155SN/A# -*- mode:python -*-
22155SN/A
32155SN/A# Copyright (c) 2004-2005 The Regents of The University of Michigan
42155SN/A# All rights reserved.
52155SN/A#
62155SN/A# Redistribution and use in source and binary forms, with or without
72155SN/A# modification, are permitted provided that the following conditions are
82155SN/A# met: redistributions of source code must retain the above copyright
92155SN/A# notice, this list of conditions and the following disclaimer;
102155SN/A# redistributions in binary form must reproduce the above copyright
112155SN/A# notice, this list of conditions and the following disclaimer in the
122155SN/A# documentation and/or other materials provided with the distribution;
132155SN/A# neither the name of the copyright holders nor the names of its
142155SN/A# contributors may be used to endorse or promote products derived from
152155SN/A# this software without specific prior written permission.
162155SN/A#
172155SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182155SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192155SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202155SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212155SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222155SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232155SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242155SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252155SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262155SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272155SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
292665Ssaidi@eecs.umich.edu# Authors: Gabe Black
302155SN/A#          Steve Reinhardt
314202Sbinkertn@umich.edu
322155SN/AImport('*')
332178SN/A
342178SN/Aif env['TARGET_ISA'] == 'sparc':
352178SN/A# Workaround for bug in SCons version > 0.97d20071212
362178SN/A# Scons bug id: 2006 M5 Bug id: 308 
372178SN/A    Dir('isa/formats')
382178SN/A    Dir('isa/formats/mem')
392178SN/A    Source('asi.cc')
402178SN/A    Source('faults.cc')
412178SN/A    Source('floatregfile.cc')
422178SN/A    Source('intregfile.cc')
432178SN/A    Source('miscregfile.cc')
442178SN/A    Source('pagetable.cc')
452155SN/A    Source('regfile.cc')
462178SN/A    Source('remote_gdb.cc')
472155SN/A    Source('tlb.cc')
482155SN/A    Source('utility.cc')
492178SN/A
502155SN/A    SimObject('SparcTLB.py')
512155SN/A    TraceFlag('Sparc')
522623SN/A
533918Ssaidi@eecs.umich.edu    if env['FULL_SYSTEM']:
542623SN/A        SimObject('SparcSystem.py')
552623SN/A        SimObject('SparcInterrupts.py')
563918Ssaidi@eecs.umich.edu
572155SN/A        Source('interrupts.cc')
582155SN/A        Source('stacktrace.cc')
592292SN/A        Source('system.cc')
603918Ssaidi@eecs.umich.edu        Source('ua2005.cc')
612292SN/A        Source('vtophys.cc')
622292SN/A    else:
632292SN/A        Source('process.cc')
643918Ssaidi@eecs.umich.edu
652292SN/A        Source('linux/linux.cc')
662292SN/A        Source('linux/process.cc')
672766Sktlim@umich.edu        Source('linux/syscalls.cc')
682766Sktlim@umich.edu
692766Sktlim@umich.edu        Source('solaris/process.cc')
702921Sktlim@umich.edu        Source('solaris/solaris.cc')
712921Sktlim@umich.edu
722766Sktlim@umich.edu    # Add in files generated by the ISA description.
732766Sktlim@umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
742766Sktlim@umich.edu    # Only non-header files need to be compiled.
754762Snate@binkert.org    for f in isa_desc_files:
762155SN/A        if not f.path.endswith('.hh'):
772155SN/A            Source(f)
782155SN/A