SConscript revision 8349
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.
282665Ssaidi@eecs.umich.edu#
294762Snate@binkert.org# Authors: Gabe Black
30955SN/A#          Steve Reinhardt
3112563Sgabeblack@google.com
3212563Sgabeblack@google.comImport('*')
335522Snate@binkert.org
346143Snate@binkert.orgif env['TARGET_ISA'] == 'sparc':
3512371Sgabeblack@google.com    Source('asi.cc')
364762Snate@binkert.org    Source('faults.cc')
375522Snate@binkert.org    Source('isa.cc')
38955SN/A    Source('nativetrace.cc')
395522Snate@binkert.org    Source('pagetable.cc')
4011974Sgabeblack@google.com    Source('remote_gdb.cc')
41955SN/A    Source('tlb.cc')
425522Snate@binkert.org    Source('utility.cc')
434202Sbinkertn@umich.edu
445742Snate@binkert.org    SimObject('SparcNativeTrace.py')
45955SN/A
464381Sbinkertn@umich.edu    SimObject('SparcTLB.py')
474381Sbinkertn@umich.edu    DebugFlag('Sparc', "Generic SPARC ISA stuff")
4812246Sgabeblack@google.com    DebugFlag('RegisterWindows', "Register window manipulation")
4912246Sgabeblack@google.com
508334Snate@binkert.org    if env['FULL_SYSTEM']:
51955SN/A        SimObject('SparcSystem.py')
52955SN/A        SimObject('SparcInterrupts.py')
534202Sbinkertn@umich.edu
54955SN/A        Source('interrupts.cc')
554382Sbinkertn@umich.edu        Source('system.cc')
564382Sbinkertn@umich.edu        Source('ua2005.cc')
574382Sbinkertn@umich.edu        Source('vtophys.cc')
586654Snate@binkert.org    else:
595517Snate@binkert.org        Source('process.cc')
608614Sgblack@eecs.umich.edu
617674Snate@binkert.org        Source('linux/linux.cc')
626143Snate@binkert.org        Source('linux/process.cc')
636143Snate@binkert.org        Source('linux/syscalls.cc')
646143Snate@binkert.org
6512302Sgabeblack@google.com        Source('solaris/process.cc')
6612302Sgabeblack@google.com        Source('solaris/solaris.cc')
6712302Sgabeblack@google.com
6812371Sgabeblack@google.com    # Add in files generated by the ISA description.
6912371Sgabeblack@google.com    isa_desc_files = env.ISADesc('isa/main.isa')
7012371Sgabeblack@google.com    # Only non-header files need to be compiled.
7112371Sgabeblack@google.com    for f in isa_desc_files:
7212371Sgabeblack@google.com        if not f.path.endswith('.hh'):
7312371Sgabeblack@google.com            Source(f)
7412371Sgabeblack@google.com