SConscript revision 5647:b06b49498c79
14997SN/A# -*- mode:python -*-
27944SN/A
37944SN/A# Copyright (c) 2004-2005 The Regents of The University of Michigan
47944SN/A# All rights reserved.
57944SN/A#
67944SN/A# Redistribution and use in source and binary forms, with or without
77944SN/A# modification, are permitted provided that the following conditions are
87944SN/A# met: redistributions of source code must retain the above copyright
97944SN/A# notice, this list of conditions and the following disclaimer;
107944SN/A# redistributions in binary form must reproduce the above copyright
117944SN/A# notice, this list of conditions and the following disclaimer in the
127944SN/A# documentation and/or other materials provided with the distribution;
137944SN/A# neither the name of the copyright holders nor the names of its
144997SN/A# contributors may be used to endorse or promote products derived from
154997SN/A# this software without specific prior written permission.
164997SN/A#
174997SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
184997SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
194997SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
204997SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
214997SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
224997SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
234997SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
244997SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254997SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
264997SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
274997SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284997SN/A#
294997SN/A# Authors: Gabe Black
304997SN/A#          Steve Reinhardt
314997SN/A
324997SN/AImport('*')
334997SN/A
344997SN/Aif env['TARGET_ISA'] == 'alpha':
354997SN/A    Source('ev5.cc')
364997SN/A    Source('faults.cc')
374997SN/A    Source('floatregfile.cc')
384997SN/A    Source('intregfile.cc')
394997SN/A    Source('ipr.cc')
404997SN/A    Source('miscregfile.cc')
414997SN/A    Source('pagetable.cc')
424997SN/A    Source('regfile.cc')
4310687SAndreas.Sandberg@ARM.com    Source('remote_gdb.cc')
4410687SAndreas.Sandberg@ARM.com    Source('tlb.cc')
454997SN/A    Source('utility.cc')
4612334Sgabeblack@google.com
474997SN/A    SimObject('AlphaTLB.py')
484997SN/A
494997SN/A    if env['FULL_SYSTEM']:
504997SN/A        SimObject('AlphaInterrupts.py')
519294SN/A        SimObject('AlphaSystem.py')
524997SN/A
535358SN/A        Source('idle_event.cc')
545004SN/A        Source('interrupts.cc')
555004SN/A        Source('kernel_stats.cc')
566023SN/A        Source('osfpal.cc')
576023SN/A        Source('stacktrace.cc')
585004SN/A        Source('system.cc')
595004SN/A        Source('vtophys.cc')
604997SN/A
616023SN/A        Source('freebsd/system.cc')
626023SN/A        Source('linux/system.cc')
636023SN/A        Source('tru64/system.cc')
645358SN/A
655894SN/A    else:
668922SN/A        Source('process.cc')
679423SN/A
689423SN/A        Source('linux/linux.cc')
699423SN/A        Source('linux/process.cc')
709423SN/A
719423SN/A        Source('tru64/tru64.cc')
7210194SN/A        Source('tru64/process.cc')
7310194SN/A
7410194SN/A    # Add in files generated by the ISA description.
7510194SN/A    isa_desc_files = env.ISADesc('isa/main.isa')
7610194SN/A    # Only non-header files need to be compiled.
778922SN/A    for f in isa_desc_files:
788922SN/A        if not f.path.endswith('.hh'):
798922SN/A            Source(f)
808922SN/A