SConscript revision 5650
16019Shines@cs.fsu.edu# -*- mode:python -*-
26019Shines@cs.fsu.edu
36019Shines@cs.fsu.edu# Copyright (c) 2004-2005 The Regents of The University of Michigan
46019Shines@cs.fsu.edu# All rights reserved.
56019Shines@cs.fsu.edu#
66019Shines@cs.fsu.edu# Redistribution and use in source and binary forms, with or without
76019Shines@cs.fsu.edu# modification, are permitted provided that the following conditions are
86019Shines@cs.fsu.edu# met: redistributions of source code must retain the above copyright
96019Shines@cs.fsu.edu# notice, this list of conditions and the following disclaimer;
106019Shines@cs.fsu.edu# redistributions in binary form must reproduce the above copyright
116019Shines@cs.fsu.edu# notice, this list of conditions and the following disclaimer in the
126019Shines@cs.fsu.edu# documentation and/or other materials provided with the distribution;
136019Shines@cs.fsu.edu# neither the name of the copyright holders nor the names of its
146019Shines@cs.fsu.edu# contributors may be used to endorse or promote products derived from
156019Shines@cs.fsu.edu# this software without specific prior written permission.
166019Shines@cs.fsu.edu#
176019Shines@cs.fsu.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
186019Shines@cs.fsu.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
196019Shines@cs.fsu.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
206019Shines@cs.fsu.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
216019Shines@cs.fsu.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226019Shines@cs.fsu.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
236019Shines@cs.fsu.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
246019Shines@cs.fsu.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
256019Shines@cs.fsu.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
266019Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
276019Shines@cs.fsu.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
286019Shines@cs.fsu.edu#
296019Shines@cs.fsu.edu# Authors: Gabe Black
306019Shines@cs.fsu.edu#          Steve Reinhardt
316019Shines@cs.fsu.edu
326019Shines@cs.fsu.eduImport('*')
336019Shines@cs.fsu.edu
346019Shines@cs.fsu.eduif env['TARGET_ISA'] == 'sparc':
356019Shines@cs.fsu.edu# Workaround for bug in SCons version > 0.97d20071212
366019Shines@cs.fsu.edu# Scons bug id: 2006 M5 Bug id: 308 
376019Shines@cs.fsu.edu    Dir('isa/formats')
386019Shines@cs.fsu.edu    Dir('isa/formats/mem')
396019Shines@cs.fsu.edu    Source('asi.cc')
406019Shines@cs.fsu.edu    Source('faults.cc')
416019Shines@cs.fsu.edu    Source('floatregfile.cc')
426019Shines@cs.fsu.edu    Source('intregfile.cc')
436019Shines@cs.fsu.edu    Source('miscregfile.cc')
446019Shines@cs.fsu.edu    Source('pagetable.cc')
456019Shines@cs.fsu.edu    Source('regfile.cc')
466019Shines@cs.fsu.edu    Source('remote_gdb.cc')
476019Shines@cs.fsu.edu    Source('tlb.cc')
486019Shines@cs.fsu.edu    Source('utility.cc')
496019Shines@cs.fsu.edu
506019Shines@cs.fsu.edu    SimObject('SparcTLB.py')
516019Shines@cs.fsu.edu    TraceFlag('Sparc')
526019Shines@cs.fsu.edu
536019Shines@cs.fsu.edu    if env['FULL_SYSTEM']:
546019Shines@cs.fsu.edu        SimObject('SparcSystem.py')
556019Shines@cs.fsu.edu        SimObject('SparcInterrupts.py')
566019Shines@cs.fsu.edu
576019Shines@cs.fsu.edu        Source('interrupts.cc')
586019Shines@cs.fsu.edu        Source('stacktrace.cc')
596019Shines@cs.fsu.edu        Source('system.cc')
606019Shines@cs.fsu.edu        Source('ua2005.cc')
616019Shines@cs.fsu.edu        Source('vtophys.cc')
62    else:
63        Source('process.cc')
64
65        Source('linux/linux.cc')
66        Source('linux/process.cc')
67        Source('linux/syscalls.cc')
68
69        Source('solaris/process.cc')
70        Source('solaris/solaris.cc')
71
72    # Add in files generated by the ISA description.
73    isa_desc_files = env.ISADesc('isa/main.isa')
74    # Only non-header files need to be compiled.
75    for f in isa_desc_files:
76        if not f.path.endswith('.hh'):
77            Source(f)
78