SConscript revision 7677
11060SN/A# -*- mode:python -*-
22702Sktlim@umich.edu
31060SN/A# Copyright (c) 2004-2006 The Regents of The University of Michigan
41060SN/A# All rights reserved.
51060SN/A#
61060SN/A# Redistribution and use in source and binary forms, with or without
71060SN/A# modification, are permitted provided that the following conditions are
81060SN/A# met: redistributions of source code must retain the above copyright
91060SN/A# notice, this list of conditions and the following disclaimer;
101060SN/A# redistributions in binary form must reproduce the above copyright
111060SN/A# notice, this list of conditions and the following disclaimer in the
121060SN/A# documentation and/or other materials provided with the distribution;
131060SN/A# neither the name of the copyright holders nor the names of its
141060SN/A# contributors may be used to endorse or promote products derived from
151060SN/A# this software without specific prior written permission.
161060SN/A#
171060SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
181060SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
191060SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
201060SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
211060SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
221060SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
231060SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
241060SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
251060SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
261060SN/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#
291060SN/A# Authors: Gabe Black
301060SN/A#          Steve Reinhardt
311464SN/A#          Korey Sewell
321464SN/A
331060SN/AImport('*')
342731Sktlim@umich.edu
352292SN/Aif env['TARGET_ISA'] == 'mips':
361464SN/A    Source('faults.cc')
371060SN/A    Source('isa.cc')
382669Sktlim@umich.edu    Source('tlb.cc')
391060SN/A    Source('pagetable.cc')
401060SN/A    Source('utility.cc')
411858SN/A    Source('dsp.cc')
423770Sgblack@eecs.umich.edu
431464SN/A    SimObject('MipsTLB.py')
441464SN/A    TraceFlag('MipsPRA')
452669Sktlim@umich.edu
461060SN/A    if env['FULL_SYSTEM']:
472669Sktlim@umich.edu	SimObject('MipsSystem.py')
482292SN/A	SimObject('MipsInterrupts.py')
496023Snate@binkert.org        Source('idle_event.cc')
501060SN/A        Source('mips_core_specific.cc')
511060SN/A        Source('vtophys.cc')
521060SN/A        Source('system.cc')
531060SN/A        Source('stacktrace.cc')
541060SN/A        Source('linux/system.cc')
551060SN/A	Source('interrupts.cc')
561061SN/A        Source('bare_iron/system.cc')
571061SN/A    else:
581060SN/A        Source('process.cc')
591060SN/A        Source('linux/linux.cc')
601061SN/A        Source('linux/process.cc')
611060SN/A
621060SN/A    # Add in files generated by the ISA description.
631060SN/A    isa_desc_files = env.ISADesc('isa/main.isa')
642733Sktlim@umich.edu    # Only non-header files need to be compiled.
652733Sktlim@umich.edu    for f in isa_desc_files:
661060SN/A        if not f.path.endswith('.hh'):
672292SN/A            Source(f)
682107SN/A