SConscript revision 8745
11046SN/A# -*- mode:python -*-
21046SN/A
31762SN/A# Copyright (c) 2004-2006 The Regents of The University of Michigan
41046SN/A# All rights reserved.
51046SN/A#
61046SN/A# Redistribution and use in source and binary forms, with or without
71046SN/A# modification, are permitted provided that the following conditions are
81046SN/A# met: redistributions of source code must retain the above copyright
91046SN/A# notice, this list of conditions and the following disclaimer;
101046SN/A# redistributions in binary form must reproduce the above copyright
111046SN/A# notice, this list of conditions and the following disclaimer in the
121046SN/A# documentation and/or other materials provided with the distribution;
131046SN/A# neither the name of the copyright holders nor the names of its
141046SN/A# contributors may be used to endorse or promote products derived from
151046SN/A# this software without specific prior written permission.
161046SN/A#
171046SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
181046SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
191046SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
201046SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
211046SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
221046SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
231046SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
241046SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
251046SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
261046SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
271046SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
292665Ssaidi@eecs.umich.edu# Authors: Gabe Black
302665Ssaidi@eecs.umich.edu#          Steve Reinhardt
311046SN/A#          Korey Sewell
324202Sbinkertn@umich.edu
331530SN/AImport('*')
345522Snate@binkert.org
354382Sbinkertn@umich.eduif env['TARGET_ISA'] == 'mips':
364382Sbinkertn@umich.edu    Source('faults.cc')
375471Snate@binkert.org    Source('interrupts.cc')
385801Snate@binkert.org    Source('isa.cc')
395801Snate@binkert.org    Source('tlb.cc')
404382Sbinkertn@umich.edu    Source('pagetable.cc')
414382Sbinkertn@umich.edu    Source('utility.cc')
425470Snate@binkert.org    Source('dsp.cc')
434382Sbinkertn@umich.edu    Source('remote_gdb.cc')
444382Sbinkertn@umich.edu
454762Snate@binkert.org    SimObject('MipsInterrupts.py')
464382Sbinkertn@umich.edu    DebugFlag('MipsPRA')
475799Snate@binkert.org    SimObject('MipsTLB.py')
487674Snate@binkert.org
498295Snate@binkert.org    if env['FULL_SYSTEM']:
505467Snate@binkert.org        SimObject('MipsSystem.py')
515467Snate@binkert.org        Source('idle_event.cc')
526502Snate@binkert.org        Source('mips_core_specific.cc')
536654Snate@binkert.org        Source('vtophys.cc')
548999Suri.wiener@arm.com        Source('system.cc')
556501Snate@binkert.org        Source('stacktrace.cc')
565467Snate@binkert.org        Source('linux/system.cc')
575467Snate@binkert.org        Source('bare_iron/system.cc')
586500Snate@binkert.org    else:
596654Snate@binkert.org        Source('process.cc')
607503Snate@binkert.org        Source('linux/linux.cc')
617816Ssteve.reinhardt@amd.com        Source('linux/process.cc')
6211988Sandreas.sandberg@arm.com
632667Sstever@eecs.umich.edu    # Add in files generated by the ISA description.
644382Sbinkertn@umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
657677Snate@binkert.org    # Only non-header files need to be compiled.
6611988Sandreas.sandberg@arm.com    for f in isa_desc_files:
6712302Sgabeblack@google.com        if not f.path.endswith('.hh'):
6812302Sgabeblack@google.com            Source(f)
6912302Sgabeblack@google.com