SConscript revision 6335:a08470cb53e5
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('*')
339850Sandreas.hansson@arm.com
349850Sandreas.hansson@arm.comif env['TARGET_ISA'] == 'sparc':
359850Sandreas.hansson@arm.com    Source('asi.cc')
367768SAli.Saidi@ARM.com    Source('faults.cc')
377768SAli.Saidi@ARM.com    Source('isa.cc')
3810695SAli.Saidi@ARM.com    Source('pagetable.cc')
3910695SAli.Saidi@ARM.com    Source('remote_gdb.cc')
4010695SAli.Saidi@ARM.com    Source('tlb.cc')
4110695SAli.Saidi@ARM.com    Source('utility.cc')
4210695SAli.Saidi@ARM.com
438887Sgeoffrey.blake@arm.com    SimObject('SparcTLB.py')
442766Sktlim@umich.edu    TraceFlag('Sparc', "Generic SPARC ISA stuff")
454486Sbinkertn@umich.edu    TraceFlag('RegisterWindows', "Register window manipulation")
4610663SAli.Saidi@ARM.com
474486Sbinkertn@umich.edu    if env['FULL_SYSTEM']:
488739Sgblack@eecs.umich.edu        SimObject('SparcSystem.py')
4910259SAndrew.Bardsley@arm.com        SimObject('SparcInterrupts.py')
504486Sbinkertn@umich.edu
514202Sbinkertn@umich.edu        Source('interrupts.cc')
524202Sbinkertn@umich.edu        Source('stacktrace.cc')
534202Sbinkertn@umich.edu        Source('system.cc')
544202Sbinkertn@umich.edu        Source('ua2005.cc')
5510319SAndreas.Sandberg@ARM.com        Source('vtophys.cc')
564202Sbinkertn@umich.edu    else:
574776Sgblack@eecs.umich.edu        Source('process.cc')
588739Sgblack@eecs.umich.edu
596365Sgblack@eecs.umich.edu        Source('linux/linux.cc')
604202Sbinkertn@umich.edu        Source('linux/process.cc')
618777Sgblack@eecs.umich.edu        Source('linux/syscalls.cc')
624202Sbinkertn@umich.edu
639913Ssteve.reinhardt@amd.com        Source('solaris/process.cc')
644202Sbinkertn@umich.edu        Source('solaris/solaris.cc')
654202Sbinkertn@umich.edu
665217Ssaidi@eecs.umich.edu    # Add in files generated by the ISA description.
674202Sbinkertn@umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
6810259SAndrew.Bardsley@arm.com    # Only non-header files need to be compiled.
692155SN/A    for f in isa_desc_files:
708887Sgeoffrey.blake@arm.com        if not f.path.endswith('.hh'):
7110201SAndrew.Bardsley@arm.com            Source(f)
728887Sgeoffrey.blake@arm.com