SConscript revision 9157
13534Sgblack@eecs.umich.edu# -*- mode:python -*-
23534Sgblack@eecs.umich.edu
33534Sgblack@eecs.umich.edu# Copyright (c) 2004-2005 The Regents of The University of Michigan
43534Sgblack@eecs.umich.edu# All rights reserved.
53534Sgblack@eecs.umich.edu#
63534Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
73534Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
83534Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
93534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
103534Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
113534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
123534Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
133534Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
143534Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
153534Sgblack@eecs.umich.edu# this software without specific prior written permission.
163534Sgblack@eecs.umich.edu#
173534Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
183534Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
193534Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
203534Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
213534Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
223534Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
233534Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
243534Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
253534Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
263534Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
273534Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
283534Sgblack@eecs.umich.edu#
293534Sgblack@eecs.umich.edu# Authors: Gabe Black
303534Sgblack@eecs.umich.edu#          Steve Reinhardt
313534Sgblack@eecs.umich.edu
324202Sbinkertn@umich.eduImport('*')
333534Sgblack@eecs.umich.edu
3410069Sandreas.hansson@arm.comif env['TARGET_ISA'] == 'sparc':
3510069Sandreas.hansson@arm.com    Source('asi.cc')
3610069Sandreas.hansson@arm.com    Source('decoder.cc')
3711765Sandreas.sandberg@arm.com    Source('faults.cc')
3811765Sandreas.sandberg@arm.com    Source('interrupts.cc')
3910069Sandreas.hansson@arm.com    Source('isa.cc')
4011765Sandreas.sandberg@arm.com    Source('linux/linux.cc')
4110069Sandreas.hansson@arm.com    Source('linux/process.cc')
429850Sandreas.hansson@arm.com    Source('linux/syscalls.cc')
437768SAli.Saidi@ARM.com    Source('nativetrace.cc')
447768SAli.Saidi@ARM.com    Source('pagetable.cc')
458739Sgblack@eecs.umich.edu    Source('process.cc')
468739Sgblack@eecs.umich.edu    Source('remote_gdb.cc')
474486Sbinkertn@umich.edu    Source('solaris/process.cc')
488739Sgblack@eecs.umich.edu    Source('solaris/solaris.cc')
498739Sgblack@eecs.umich.edu    Source('system.cc')
508739Sgblack@eecs.umich.edu    Source('tlb.cc')
5111012Sandreas.sandberg@arm.com    Source('ua2005.cc')
528739Sgblack@eecs.umich.edu    Source('utility.cc')
535192Ssaidi@eecs.umich.edu    Source('vtophys.cc')
548739Sgblack@eecs.umich.edu
558739Sgblack@eecs.umich.edu    SimObject('SparcInterrupts.py')
56    SimObject('SparcNativeTrace.py')
57    SimObject('SparcSystem.py')
58    SimObject('SparcTLB.py')
59
60    DebugFlag('Sparc', "Generic SPARC ISA stuff")
61    DebugFlag('RegisterWindows', "Register window manipulation")
62
63    # Add in files generated by the ISA description.
64    isa_desc_files = env.ISADesc('isa/main.isa')
65    # Only non-header files need to be compiled.
66    for f in isa_desc_files:
67        if not f.path.endswith('.hh'):
68            Source(f)
69