SConscript revision 8747
1955SN/A# -*- mode:python -*-
2955SN/A
37816Ssteve.reinhardt@amd.com# Copyright (c) 2004-2005 The Regents of The University of Michigan
45871Snate@binkert.org# All rights reserved.
51762SN/A#
6955SN/A# Redistribution and use in source and binary forms, with or without
7955SN/A# modification, are permitted provided that the following conditions are
8955SN/A# met: redistributions of source code must retain the above copyright
9955SN/A# notice, this list of conditions and the following disclaimer;
10955SN/A# redistributions in binary form must reproduce the above copyright
11955SN/A# notice, this list of conditions and the following disclaimer in the
12955SN/A# documentation and/or other materials provided with the distribution;
13955SN/A# neither the name of the copyright holders nor the names of its
14955SN/A# contributors may be used to endorse or promote products derived from
15955SN/A# this software without specific prior written permission.
16955SN/A#
17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28955SN/A#
29955SN/A# Authors: Gabe Black
302665Ssaidi@eecs.umich.edu#          Steve Reinhardt
312665Ssaidi@eecs.umich.edu
325863Snate@binkert.orgImport('*')
33955SN/A
34955SN/Aif env['TARGET_ISA'] == 'alpha':
35955SN/A    Source('ev5.cc')
36955SN/A    Source('faults.cc')
37955SN/A    Source('interrupts.cc')
388878Ssteve.reinhardt@amd.com    Source('ipr.cc')
392632Sstever@eecs.umich.edu    Source('isa.cc')
408878Ssteve.reinhardt@amd.com    Source('pagetable.cc')
412632Sstever@eecs.umich.edu    Source('regredir.cc')
42955SN/A    Source('remote_gdb.cc')
438878Ssteve.reinhardt@amd.com    Source('tlb.cc')
442632Sstever@eecs.umich.edu    Source('utility.cc')
452761Sstever@eecs.umich.edu
462632Sstever@eecs.umich.edu    SimObject('AlphaInterrupts.py')
472632Sstever@eecs.umich.edu    SimObject('AlphaTLB.py')
482632Sstever@eecs.umich.edu
492761Sstever@eecs.umich.edu    if env['FULL_SYSTEM']:
502761Sstever@eecs.umich.edu        SimObject('AlphaSystem.py')
512761Sstever@eecs.umich.edu
528878Ssteve.reinhardt@amd.com        Source('idle_event.cc')
538878Ssteve.reinhardt@amd.com        Source('kernel_stats.cc')
542761Sstever@eecs.umich.edu        Source('osfpal.cc')
552761Sstever@eecs.umich.edu        Source('stacktrace.cc')
562761Sstever@eecs.umich.edu        Source('system.cc')
572761Sstever@eecs.umich.edu        Source('vtophys.cc')
582761Sstever@eecs.umich.edu
598878Ssteve.reinhardt@amd.com        Source('freebsd/system.cc')
608878Ssteve.reinhardt@amd.com        Source('linux/system.cc')
612632Sstever@eecs.umich.edu        Source('tru64/system.cc')
622632Sstever@eecs.umich.edu
638878Ssteve.reinhardt@amd.com    else:
648878Ssteve.reinhardt@amd.com        Source('process.cc')
652632Sstever@eecs.umich.edu
66955SN/A        Source('linux/linux.cc')
67955SN/A        Source('linux/process.cc')
68955SN/A
695863Snate@binkert.org        Source('tru64/tru64.cc')
705863Snate@binkert.org        Source('tru64/process.cc')
715863Snate@binkert.org
725863Snate@binkert.org    # Add in files generated by the ISA description.
735863Snate@binkert.org    isa_desc_files = env.ISADesc('isa/main.isa')
745863Snate@binkert.org    # Only non-header files need to be compiled.
755863Snate@binkert.org    for f in isa_desc_files:
765863Snate@binkert.org        if not f.path.endswith('.hh'):
775863Snate@binkert.org            Source(f)
785863Snate@binkert.org