SConscript revision 6691
17513SN/A# -*- mode:python -*-
27513SN/A
37513SN/A# Copyright (c) 2009 The University of Edinburgh
48835SAli.Saidi@ARM.com# All rights reserved.
57935SN/A#
67935SN/A# Redistribution and use in source and binary forms, with or without
77935SN/A# modification, are permitted provided that the following conditions are
87513SN/A# met: redistributions of source code must retain the above copyright
97513SN/A# notice, this list of conditions and the following disclaimer;
107513SN/A# redistributions in binary form must reproduce the above copyright
117513SN/A# notice, this list of conditions and the following disclaimer in the
128835SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution;
138835SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its
148835SAli.Saidi@ARM.com# contributors may be used to endorse or promote products derived from
158835SAli.Saidi@ARM.com# this software without specific prior written permission.
167513SN/A#
178721SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
188721SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
198835SAli.Saidi@ARM.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
208835SAli.Saidi@ARM.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
217935SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
227935SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
237935SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
247935SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
257935SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
267935SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
277935SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
288893Ssaidi@eecs.umich.edu#
297513SN/A# Authors: Timothy M. Jones
307513SN/A
317513SN/AImport('*')
328835SAli.Saidi@ARM.com
337513SN/Aif env['TARGET_ISA'] == 'power':
347513SN/A# Workaround for bug in SCons version > 0.97d20071212
357513SN/A# Scons bug id: 2006 M5 Bug id: 308 
367513SN/A    Dir('isa/formats')
377513SN/A    Source('insts/branch.cc')
388835SAli.Saidi@ARM.com    Source('insts/mem.cc')
397513SN/A    Source('insts/integer.cc')
407513SN/A    Source('insts/floating.cc')
418983Snate@binkert.org    Source('insts/condition.cc')
427513SN/A    Source('insts/static_inst.cc')
437513SN/A    Source('pagetable.cc')
448835SAli.Saidi@ARM.com    Source('tlb.cc')
457513SN/A
467513SN/A    SimObject('PowerTLB.py')
477513SN/A    TraceFlag('Power')
487513SN/A
497513SN/A    if not env['FULL_SYSTEM']:
507513SN/A        Source('process.cc')
517513SN/A        Source('linux/linux.cc')
528835SAli.Saidi@ARM.com        Source('linux/process.cc')
537513SN/A
547513SN/A    # Add in files generated by the ISA description.
557513SN/A    isa_desc_files = env.ISADesc('isa/main.isa')
567513SN/A
577513SN/A    # Only non-header files need to be compiled.
587513SN/A    for f in isa_desc_files:
597513SN/A        if not f.path.endswith('.hh'):
608893Ssaidi@eecs.umich.edu            Source(f)
618893Ssaidi@eecs.umich.edu
627513SN/A