SConscript revision 9022
1955SN/A# -*- mode:python -*-
2955SN/A
39812Sandreas.hansson@arm.com# Copyright (c) 2009 The University of Edinburgh
49812Sandreas.hansson@arm.com# All rights reserved.
59812Sandreas.hansson@arm.com#
69812Sandreas.hansson@arm.com# Redistribution and use in source and binary forms, with or without
79812Sandreas.hansson@arm.com# modification, are permitted provided that the following conditions are
89812Sandreas.hansson@arm.com# met: redistributions of source code must retain the above copyright
99812Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer;
109812Sandreas.hansson@arm.com# redistributions in binary form must reproduce the above copyright
119812Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer in the
129812Sandreas.hansson@arm.com# documentation and/or other materials provided with the distribution;
139812Sandreas.hansson@arm.com# neither the name of the copyright holders nor the names of its
149812Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from
157816Ssteve.reinhardt@amd.com# this software without specific prior written permission.
165871Snate@binkert.org#
171762SN/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: Timothy M. Jones
30955SN/A
31955SN/AImport('*')
32955SN/A
33955SN/Aif env['TARGET_ISA'] == 'power':
34955SN/A# Workaround for bug in SCons version > 0.97d20071212
35955SN/A# Scons bug id: 2006 M5 Bug id: 308 
36955SN/A    Dir('isa/formats')
37955SN/A    Source('decoder.cc')
38955SN/A    Source('insts/branch.cc')
39955SN/A    Source('insts/mem.cc')
40955SN/A    Source('insts/integer.cc')
41955SN/A    Source('insts/floating.cc')
422665Ssaidi@eecs.umich.edu    Source('insts/condition.cc')
432665Ssaidi@eecs.umich.edu    Source('insts/static_inst.cc')
445863Snate@binkert.org    Source('interrupts.cc')
45955SN/A    Source('linux/linux.cc')
46955SN/A    Source('linux/process.cc')
47955SN/A    Source('pagetable.cc')
48955SN/A    Source('process.cc')
49955SN/A    Source('stacktrace.cc')
508878Ssteve.reinhardt@amd.com    Source('tlb.cc')
512632Sstever@eecs.umich.edu    Source('utility.cc')
528878Ssteve.reinhardt@amd.com    Source('vtophys.cc')
532632Sstever@eecs.umich.edu
54955SN/A    SimObject('PowerInterrupts.py')
558878Ssteve.reinhardt@amd.com    SimObject('PowerTLB.py')
562632Sstever@eecs.umich.edu
572761Sstever@eecs.umich.edu    DebugFlag('Power')
582632Sstever@eecs.umich.edu
592632Sstever@eecs.umich.edu    # Add in files generated by the ISA description.
602632Sstever@eecs.umich.edu    isa_desc_files = env.ISADesc('isa/main.isa')
612761Sstever@eecs.umich.edu
622761Sstever@eecs.umich.edu    # Only non-header files need to be compiled.
632761Sstever@eecs.umich.edu    for f in isa_desc_files:
648878Ssteve.reinhardt@amd.com        if not f.path.endswith('.hh'):
658878Ssteve.reinhardt@amd.com            Source(f)
662761Sstever@eecs.umich.edu
672761Sstever@eecs.umich.edu