SConscript revision 9022
16145Snate@binkert.org# -*- mode:python -*-
26145Snate@binkert.org
36145Snate@binkert.org# Copyright (c) 2004-2006 The Regents of The University of Michigan
46145Snate@binkert.org# All rights reserved.
56145Snate@binkert.org#
66145Snate@binkert.org# Redistribution and use in source and binary forms, with or without
76145Snate@binkert.org# modification, are permitted provided that the following conditions are
86145Snate@binkert.org# met: redistributions of source code must retain the above copyright
96145Snate@binkert.org# notice, this list of conditions and the following disclaimer;
106145Snate@binkert.org# redistributions in binary form must reproduce the above copyright
116145Snate@binkert.org# notice, this list of conditions and the following disclaimer in the
126145Snate@binkert.org# documentation and/or other materials provided with the distribution;
136145Snate@binkert.org# neither the name of the copyright holders nor the names of its
146145Snate@binkert.org# contributors may be used to endorse or promote products derived from
156145Snate@binkert.org# this software without specific prior written permission.
166145Snate@binkert.org#
176145Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
186145Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
196145Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
206145Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
216145Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226145Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
236145Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
246145Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
256145Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
266145Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
276145Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
286145Snate@binkert.org#
296145Snate@binkert.org# Authors: Gabe Black
307054Snate@binkert.org#          Steve Reinhardt
317054Snate@binkert.org#          Korey Sewell
327054Snate@binkert.org
337054Snate@binkert.orgImport('*')
347054Snate@binkert.org
357054Snate@binkert.orgif env['TARGET_ISA'] == 'mips':
367054Snate@binkert.org    Source('bare_iron/system.cc')
376145Snate@binkert.org    Source('decoder.cc')
386145Snate@binkert.org    Source('dsp.cc')
397054Snate@binkert.org    Source('faults.cc')
407054Snate@binkert.org    Source('idle_event.cc')
416145Snate@binkert.org    Source('interrupts.cc')
427002Snate@binkert.org    Source('isa.cc')
437454Snate@binkert.org    Source('linux/linux.cc')
447002Snate@binkert.org    Source('linux/process.cc')
459389Sandreas.hansson@arm.com    Source('linux/system.cc')
469389Sandreas.hansson@arm.com    Source('pagetable.cc')
479274Snilay@cs.wisc.edu    Source('process.cc')
4814184Sgabeblack@google.com    Source('remote_gdb.cc')
499274Snilay@cs.wisc.edu    Source('stacktrace.cc')
509274Snilay@cs.wisc.edu    Source('system.cc')
516145Snate@binkert.org    Source('tlb.cc')
526145Snate@binkert.org    Source('utility.cc')
536145Snate@binkert.org    Source('vtophys.cc')
546145Snate@binkert.org
556145Snate@binkert.org    SimObject('MipsInterrupts.py')
566145Snate@binkert.org    SimObject('MipsSystem.py')
579274Snilay@cs.wisc.edu    SimObject('MipsTLB.py')
587054Snate@binkert.org
597054Snate@binkert.org    DebugFlag('MipsPRA')
609274Snilay@cs.wisc.edu
619274Snilay@cs.wisc.edu    # Add in files generated by the ISA description.
627054Snate@binkert.org    isa_desc_files = env.ISADesc('isa/main.isa')
6310311Snilay@cs.wisc.edu    # Only non-header files need to be compiled.
646145Snate@binkert.org    for f in isa_desc_files:
6510370Snilay@cs.wisc.edu        if not f.path.endswith('.hh'):
6610370Snilay@cs.wisc.edu            Source(f)
6710311Snilay@cs.wisc.edu