SConscript revision 8947
13534Sgblack@eecs.umich.edu# -*- mode:python -*-
23534Sgblack@eecs.umich.edu
33534Sgblack@eecs.umich.edu# Copyright (c) 2004-2006 The Regents of The University of Michigan
43534Sgblack@eecs.umich.edu# All rights reserved.
53534Sgblack@eecs.umich.edu#
63534Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
73534Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
83534Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
93534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
103534Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
113534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
123534Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
133534Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
143534Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
153534Sgblack@eecs.umich.edu# this software without specific prior written permission.
163534Sgblack@eecs.umich.edu#
173534Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
183534Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
193534Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
203534Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
213534Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
223534Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
233534Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
243534Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
253534Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
263534Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
273534Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
283534Sgblack@eecs.umich.edu#
293534Sgblack@eecs.umich.edu# Authors: Gabe Black
303534Sgblack@eecs.umich.edu#          Steve Reinhardt
313534Sgblack@eecs.umich.edu#          Korey Sewell
323534Sgblack@eecs.umich.edu
333534Sgblack@eecs.umich.eduImport('*')
343534Sgblack@eecs.umich.edu
353534Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'mips':
363534Sgblack@eecs.umich.edu    Source('bare_iron/system.cc')
373534Sgblack@eecs.umich.edu    Source('dsp.cc')
383534Sgblack@eecs.umich.edu    Source('faults.cc')
393534Sgblack@eecs.umich.edu    Source('idle_event.cc')
403534Sgblack@eecs.umich.edu    Source('interrupts.cc')
413534Sgblack@eecs.umich.edu    Source('isa.cc')
423534Sgblack@eecs.umich.edu    Source('linux/linux.cc')
433534Sgblack@eecs.umich.edu    Source('linux/process.cc')
443534Sgblack@eecs.umich.edu    Source('linux/system.cc')
453534Sgblack@eecs.umich.edu    Source('pagetable.cc')
463534Sgblack@eecs.umich.edu    Source('process.cc')
473534Sgblack@eecs.umich.edu    Source('remote_gdb.cc')
483534Sgblack@eecs.umich.edu    Source('stacktrace.cc')
493534Sgblack@eecs.umich.edu    Source('system.cc')
503534Sgblack@eecs.umich.edu    Source('tlb.cc')
513534Sgblack@eecs.umich.edu    Source('utility.cc')
523534Sgblack@eecs.umich.edu    Source('vtophys.cc')
533534Sgblack@eecs.umich.edu
543534Sgblack@eecs.umich.edu    SimObject('MipsInterrupts.py')
553534Sgblack@eecs.umich.edu    SimObject('MipsSystem.py')
563534Sgblack@eecs.umich.edu    SimObject('MipsTLB.py')
573534Sgblack@eecs.umich.edu
583534Sgblack@eecs.umich.edu    DebugFlag('MipsPRA')
593534Sgblack@eecs.umich.edu
603534Sgblack@eecs.umich.edu    # Add in files generated by the ISA description.
613534Sgblack@eecs.umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
623534Sgblack@eecs.umich.edu    # Only non-header files need to be compiled.
633534Sgblack@eecs.umich.edu    for f in isa_desc_files:
643534Sgblack@eecs.umich.edu        if not f.path.endswith('.hh'):
653534Sgblack@eecs.umich.edu            Source(f)
663534Sgblack@eecs.umich.edu