SConscript revision 8792:1c0812bae427
1298SN/A# -*- mode:python -*- 28734Sdam.sunwoo@arm.com 38142SAli.Saidi@ARM.com# Copyright (c) 2009 The University of Edinburgh 48142SAli.Saidi@ARM.com# All rights reserved. 58142SAli.Saidi@ARM.com# 68142SAli.Saidi@ARM.com# Redistribution and use in source and binary forms, with or without 78142SAli.Saidi@ARM.com# modification, are permitted provided that the following conditions are 88142SAli.Saidi@ARM.com# met: redistributions of source code must retain the above copyright 98142SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer; 108142SAli.Saidi@ARM.com# redistributions in binary form must reproduce the above copyright 118142SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the 128142SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution; 138142SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its 148580Ssteve.reinhardt@amd.com# contributors may be used to endorse or promote products derived from 152188SN/A# this software without specific prior written permission. 16298SN/A# 17298SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18298SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19298SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20298SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21298SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22298SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23298SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24298SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25298SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26298SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27298SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28298SN/A# 29298SN/A# Authors: Timothy M. Jones 30298SN/A 31298SN/AImport('*') 32298SN/A 33298SN/Aif env['TARGET_ISA'] == 'power': 34298SN/A# Workaround for bug in SCons version > 0.97d20071212 35298SN/A# Scons bug id: 2006 M5 Bug id: 308 36298SN/A Dir('isa/formats') 37298SN/A Source('insts/branch.cc') 38298SN/A Source('insts/mem.cc') 39298SN/A Source('insts/integer.cc') 402665Ssaidi@eecs.umich.edu Source('insts/floating.cc') 412665Ssaidi@eecs.umich.edu Source('insts/condition.cc') 42298SN/A Source('insts/static_inst.cc') 43298SN/A Source('interrupts.cc') 44954SN/A Source('linux/linux.cc') 45956SN/A Source('linux/process.cc') 46956SN/A Source('pagetable.cc') 478229Snate@binkert.org Source('process.cc') 484078Sbinkertn@umich.edu Source('stacktrace.cc') 49299SN/A Source('tlb.cc') 50299SN/A Source('utility.cc') 518777Sgblack@eecs.umich.edu Source('vtophys.cc') 522170SN/A 535882Snate@binkert.org SimObject('PowerInterrupts.py') 548734Sdam.sunwoo@arm.com SimObject('PowerTLB.py') 556658Snate@binkert.org 561717SN/A DebugFlag('Power') 578229Snate@binkert.org 582680Sktlim@umich.edu # Add in files generated by the ISA description. 598232Snate@binkert.org isa_desc_files = env.ISADesc('isa/main.isa') 608232Snate@binkert.org 618232Snate@binkert.org # Only non-header files need to be compiled. 625529Snate@binkert.org for f in isa_desc_files: 638784Sgblack@eecs.umich.edu if not f.path.endswith('.hh'): 643565Sgblack@eecs.umich.edu Source(f) 65298SN/A 665606Snate@binkert.org