SConscript revision 6691
12139SN/A# -*- mode:python -*- 22139SN/A 32139SN/A# Copyright (c) 2009 The University of Edinburgh 42139SN/A# All rights reserved. 52139SN/A# 62139SN/A# Redistribution and use in source and binary forms, with or without 72139SN/A# modification, are permitted provided that the following conditions are 82139SN/A# met: redistributions of source code must retain the above copyright 92139SN/A# notice, this list of conditions and the following disclaimer; 102139SN/A# redistributions in binary form must reproduce the above copyright 112139SN/A# notice, this list of conditions and the following disclaimer in the 122139SN/A# documentation and/or other materials provided with the distribution; 132139SN/A# neither the name of the copyright holders nor the names of its 142139SN/A# contributors may be used to endorse or promote products derived from 152139SN/A# this software without specific prior written permission. 162139SN/A# 172139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192139SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222139SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232139SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Timothy M. Jones 302139SN/A 312718Sstever@eecs.umich.eduImport('*') 322139SN/A 332139SN/Aif env['TARGET_ISA'] == 'power': 342139SN/A# Workaround for bug in SCons version > 0.97d20071212 352139SN/A# Scons bug id: 2006 M5 Bug id: 308 362152SN/A Dir('isa/formats') 372152SN/A Source('insts/branch.cc') 382152SN/A Source('insts/mem.cc') 392152SN/A Source('insts/integer.cc') 402139SN/A Source('insts/floating.cc') 412139SN/A Source('insts/condition.cc') 422139SN/A Source('insts/static_inst.cc') 432139SN/A Source('pagetable.cc') 442139SN/A Source('tlb.cc') 452152SN/A 462152SN/A SimObject('PowerTLB.py') 472139SN/A TraceFlag('Power') 482139SN/A 492139SN/A if not env['FULL_SYSTEM']: 502984Sgblack@eecs.umich.edu Source('process.cc') 512439SN/A Source('linux/linux.cc') 523520Sgblack@eecs.umich.edu Source('linux/process.cc') 532139SN/A 543565Sgblack@eecs.umich.edu # Add in files generated by the ISA description. 553170Sstever@eecs.umich.edu isa_desc_files = env.ISADesc('isa/main.isa') 562439SN/A 572460SN/A # Only non-header files need to be compiled. 583536Sgblack@eecs.umich.edu for f in isa_desc_files: 592439SN/A if not f.path.endswith('.hh'): 602972Sgblack@eecs.umich.edu Source(f) 612171SN/A 622439SN/A