SConscript revision 6329:5d8b91875859
12568SN/A# -*- mode:python -*-
22568SN/A
32568SN/A# Copyright (c) 2004-2005 The Regents of The University of Michigan
42568SN/A# All rights reserved.
52568SN/A#
62568SN/A# Redistribution and use in source and binary forms, with or without
72568SN/A# modification, are permitted provided that the following conditions are
82568SN/A# met: redistributions of source code must retain the above copyright
92568SN/A# notice, this list of conditions and the following disclaimer;
102568SN/A# redistributions in binary form must reproduce the above copyright
112568SN/A# notice, this list of conditions and the following disclaimer in the
122568SN/A# documentation and/or other materials provided with the distribution;
132568SN/A# neither the name of the copyright holders nor the names of its
142568SN/A# contributors may be used to endorse or promote products derived from
152568SN/A# this software without specific prior written permission.
162568SN/A#
172568SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182568SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192568SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202568SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212568SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222568SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232568SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242568SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252568SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262568SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272568SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282568SN/A#
292568SN/A# Authors: Gabe Black
302568SN/A#          Steve Reinhardt
312568SN/A
322568SN/AImport('*')
332568SN/A
342568SN/Aif env['TARGET_ISA'] == 'sparc':
352568SN/A    Source('asi.cc')
362568SN/A    Source('faults.cc')
372568SN/A    Source('isa.cc')
382568SN/A    Source('miscregfile.cc')
392568SN/A    Source('pagetable.cc')
402568SN/A    Source('remote_gdb.cc')
412568SN/A    Source('tlb.cc')
422568SN/A    Source('utility.cc')
432568SN/A
442568SN/A    SimObject('SparcTLB.py')
452568SN/A    TraceFlag('Sparc', "Generic SPARC ISA stuff")
462568SN/A    TraceFlag('RegisterWindows', "Register window manipulation")
472568SN/A
482568SN/A    if env['FULL_SYSTEM']:
492568SN/A        SimObject('SparcSystem.py')
502568SN/A        SimObject('SparcInterrupts.py')
512568SN/A
522568SN/A        Source('interrupts.cc')
532568SN/A        Source('stacktrace.cc')
542643Sstever@eecs.umich.edu        Source('system.cc')
552568SN/A        Source('ua2005.cc')
562568SN/A        Source('vtophys.cc')
572643Sstever@eecs.umich.edu    else:
582643Sstever@eecs.umich.edu        Source('process.cc')
592643Sstever@eecs.umich.edu
602643Sstever@eecs.umich.edu        Source('linux/linux.cc')
612643Sstever@eecs.umich.edu        Source('linux/process.cc')
622643Sstever@eecs.umich.edu        Source('linux/syscalls.cc')
632643Sstever@eecs.umich.edu
642643Sstever@eecs.umich.edu        Source('solaris/process.cc')
652643Sstever@eecs.umich.edu        Source('solaris/solaris.cc')
662643Sstever@eecs.umich.edu
672643Sstever@eecs.umich.edu    # Add in files generated by the ISA description.
682643Sstever@eecs.umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
692643Sstever@eecs.umich.edu    # Only non-header files need to be compiled.
702643Sstever@eecs.umich.edu    for f in isa_desc_files:
712643Sstever@eecs.umich.edu        if not f.path.endswith('.hh'):
722643Sstever@eecs.umich.edu            Source(f)
732643Sstever@eecs.umich.edu