SConscript revision 9384
12SN/A# -*- mode:python -*-
213610Sgiacomo.gabrielli@arm.com
313610Sgiacomo.gabrielli@arm.com# Copyright (c) 2004-2005 The Regents of The University of Michigan
413610Sgiacomo.gabrielli@arm.com# All rights reserved.
513610Sgiacomo.gabrielli@arm.com#
613610Sgiacomo.gabrielli@arm.com# Redistribution and use in source and binary forms, with or without
713610Sgiacomo.gabrielli@arm.com# modification, are permitted provided that the following conditions are
813610Sgiacomo.gabrielli@arm.com# met: redistributions of source code must retain the above copyright
913610Sgiacomo.gabrielli@arm.com# notice, this list of conditions and the following disclaimer;
1013610Sgiacomo.gabrielli@arm.com# redistributions in binary form must reproduce the above copyright
1113610Sgiacomo.gabrielli@arm.com# notice, this list of conditions and the following disclaimer in the
1213610Sgiacomo.gabrielli@arm.com# documentation and/or other materials provided with the distribution;
1313610Sgiacomo.gabrielli@arm.com# neither the name of the copyright holders nor the names of its
141762SN/A# contributors may be used to endorse or promote products derived from
159920Syasuko.eckert@amd.com# this software without specific prior written permission.
162SN/A#
172SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282SN/A#
292SN/A# Authors: Gabe Black
302SN/A#          Steve Reinhardt
312SN/A
322SN/AImport('*')
332SN/A
342SN/Aif env['TARGET_ISA'] == 'sparc':
352SN/A    Source('asi.cc')
362SN/A    Source('decoder.cc')
372SN/A    Source('faults.cc')
382SN/A    Source('interrupts.cc')
392SN/A    Source('isa.cc')
402665Ssaidi@eecs.umich.edu    Source('linux/linux.cc')
412665Ssaidi@eecs.umich.edu    Source('linux/process.cc')
422SN/A    Source('linux/syscalls.cc')
432SN/A    Source('nativetrace.cc')
441464SN/A    Source('pagetable.cc')
451464SN/A    Source('process.cc')
462SN/A    Source('remote_gdb.cc')
472SN/A    Source('solaris/process.cc')
4812614Sgabeblack@google.com    Source('solaris/solaris.cc')
492SN/A    Source('system.cc')
502SN/A    Source('tlb.cc')
518229Snate@binkert.org    Source('ua2005.cc')
527720Sgblack@eecs.umich.edu    Source('utility.cc')
5312334Sgabeblack@google.com    Source('vtophys.cc')
5456SN/A
556216Snate@binkert.org    SimObject('SparcInterrupts.py')
568229Snate@binkert.org    SimObject('SparcISA.py')
572410SN/A    SimObject('SparcNativeTrace.py')
5812104Snathanael.premillieu@arm.com    SimObject('SparcSystem.py')
598542Sgblack@eecs.umich.edu    SimObject('SparcTLB.py')
609338SAndreas.Sandberg@arm.com
6110201SAndrew.Bardsley@arm.com    DebugFlag('Sparc', "Generic SPARC ISA stuff")
6212614Sgabeblack@google.com    DebugFlag('RegisterWindows', "Register window manipulation")
632SN/A
642SN/A    # Add in files generated by the ISA description.
652623SN/A    isa_desc_files = env.ISADesc('isa/main.isa')
661464SN/A    # Only non-header files need to be compiled.
6710319SAndreas.Sandberg@ARM.com    for f in isa_desc_files:
6810259SAndrew.Bardsley@arm.com        if not f.path.endswith('.hh'):
692SN/A            Source(f)
702SN/A