SConscript revision 4826:259b996a6da6
12SN/A# -*- mode:python -*-
21762SN/A
32SN/A# Copyright (c) 2004-2005 The Regents of The University of Michigan
42SN/A# All rights reserved.
52SN/A#
62SN/A# Redistribution and use in source and binary forms, with or without
72SN/A# modification, are permitted provided that the following conditions are
82SN/A# met: redistributions of source code must retain the above copyright
92SN/A# notice, this list of conditions and the following disclaimer;
102SN/A# redistributions in binary form must reproduce the above copyright
112SN/A# notice, this list of conditions and the following disclaimer in the
122SN/A# documentation and/or other materials provided with the distribution;
132SN/A# neither the name of the copyright holders nor the names of its
142SN/A# contributors may be used to endorse or promote products derived from
152SN/A# 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
272665Ssaidi@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
292SN/A# Authors: Gabe Black
302SN/A#          Steve Reinhardt
312SN/A
322SN/AImport('*')
332SN/A
342SN/Aif env['TARGET_ISA'] == 'alpha':
352SN/A    Source('faults.cc')
36147SN/A    Source('floatregfile.cc')
371158SN/A    Source('intregfile.cc')
38147SN/A    Source('miscregfile.cc')
39147SN/A    Source('regfile.cc')
40147SN/A    Source('remote_gdb.cc')
41147SN/A    Source('utility.cc')
422SN/A
43147SN/A    if env['FULL_SYSTEM']:
44147SN/A        SimObject('AlphaSystem.py')
45147SN/A        SimObject('AlphaTLB.py')
46147SN/A
472SN/A        Source('ev5.cc')
48147SN/A        Source('idle_event.cc')
49147SN/A        Source('ipr.cc')
50147SN/A        Source('kernel_stats.cc')
51147SN/A        Source('osfpal.cc')
52147SN/A        Source('pagetable.cc')
532SN/A        Source('stacktrace.cc')
542SN/A        Source('system.cc')
552SN/A        Source('tlb.cc')
562SN/A        Source('vtophys.cc')
572SN/A
582SN/A        Source('freebsd/system.cc')
59147SN/A        Source('linux/system.cc')
60147SN/A        Source('tru64/system.cc')
61147SN/A
62147SN/A    else:
63147SN/A        Source('process.cc')
64147SN/A
65147SN/A        Source('linux/linux.cc')
66147SN/A        Source('linux/process.cc')
67147SN/A
68147SN/A        Source('tru64/tru64.cc')
692SN/A        Source('tru64/process.cc')
702SN/A
71147SN/A    # Add in files generated by the ISA description.
72147SN/A    isa_desc_files = env.ISADesc('isa/main.isa')
73147SN/A    # Only non-header files need to be compiled.
74147SN/A    for f in isa_desc_files:
75147SN/A        if not f.path.endswith('.hh'):
76147SN/A            Source(f)
77147SN/A