SConscript revision 4249:3a3be2b708b0
12SN/A# -*- mode:python -*- 21762SN/A 32SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan 42SN/A# All rights reserved. 52SN/A# 62SN/A# Redistribution and use in source and binary forms, with or without 72SN/A# modification, are permitted provided that the following conditions are 82SN/A# met: redistributions of source code must retain the above copyright 92SN/A# notice, this list of conditions and the following disclaimer; 102SN/A# redistributions in binary form must reproduce the above copyright 112SN/A# notice, this list of conditions and the following disclaimer in the 122SN/A# documentation and/or other materials provided with the distribution; 132SN/A# neither the name of the copyright holders nor the names of its 142SN/A# contributors may be used to endorse or promote products derived from 152SN/A# this software without specific prior written permission. 162SN/A# 172SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272665Ssaidi@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Gabe Black 302665Ssaidi@eecs.umich.edu 312SN/A# Copyright (c) 2007 The Hewlett-Packard Development Company 322SN/A# All rights reserved. 332SN/A# 342SN/A# Redistribution and use of this software in source and binary forms, 352SN/A# with or without modification, are permitted provided that the 362SN/A# following conditions are met: 3775SN/A# 382SN/A# The software must be used only for Non-Commercial Use which means any 392439SN/A# use which is NOT directed to receiving any direct monetary 402439SN/A# compensation for, or commercial advantage from such use. Illustrative 41603SN/A# examples of non-commercial use are academic research, personal study, 42603SN/A# teaching, education and corporate research & development. 432520SN/A# Illustrative examples of commercial use are distributing products for 442378SN/A# commercial advantage and providing services using the software for 452378SN/A# commercial advantage. 46722SN/A# 472521SN/A# If you wish to use this software or functionality therein that may be 482378SN/A# covered by patents for commercial use, please contact: 49312SN/A# Director of Intellectual Property Licensing 501634SN/A# Office of Strategy and Technology 512680Sktlim@umich.edu# Hewlett-Packard Company 521634SN/A# 1501 Page Mill Road 532521SN/A# Palo Alto, California 94304 542378SN/A# 552378SN/A# Redistributions of source code must retain the above copyright notice, 56803SN/A# this list of conditions and the following disclaimer. Redistributions 572378SN/A# in binary form must reproduce the above copyright notice, this list of 582SN/A# conditions and the following disclaimer in the documentation and/or 591070SN/A# other materials provided with the distribution. Neither the name of 602378SN/A# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 612SN/A# contributors may be used to endorse or promote products derived from 622SN/A# this software without specific prior written permission. No right of 632SN/A# sublicense is granted herewith. Derivatives of the software and 64603SN/A# output created using the software may be prepared, but only for 652521SN/A# Non-Commercial Uses. Derivatives of the software may be shared with 662SN/A# others provided: (i) the others agree to abide by the list of 672SN/A# conditions herein which includes the Non-Commercial Use restrictions; 682680Sktlim@umich.edu# and (ii) such Derivatives of the software include the above copyright 691806SN/A# notice to acknowledge the contribution from this software where 701806SN/A# applicable, this list of conditions and the disclaimer below. 711806SN/A# 721806SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 732680Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 741806SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 751806SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 761806SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 771806SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 78180SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 792378SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 802378SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 812378SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 822378SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 832520SN/A# 842520SN/A# Authors: Gabe Black 852520SN/A 862521SN/AImport('*') 872520SN/Aif env['TARGET_ISA'] == 'x86': 881885SN/A Source('floatregfile.cc') 891070SN/A Source('intregfile.cc') 90954SN/A Source('miscregfile.cc') 911070SN/A Source('predecoder.cc') 921070SN/A Source('predecoder_tables.cc') 931070SN/A Source('regfile.cc') 941070SN/A Source('remote_gdb.cc') 951070SN/A 961070SN/A if env['FULL_SYSTEM']: 971070SN/A # Full-system sources 981070SN/A pass 991070SN/A else: 1001070SN/A Source('process.cc') 1011070SN/A 1021070SN/A Source('linux/linux.cc') 1031070SN/A Source('linux/process.cc') 1041070SN/A Source('linux/syscalls.cc') 1052378SN/A 1062378SN/A # Add in files generated by the ISA description. 1072378SN/A isa_desc_files = env.ISADesc('isa/main.isa') 1082378SN/A # Only non-header files need to be compiled. 1092378SN/A for f in isa_desc_files: 1102378SN/A if not f.path.endswith('.hh'): 1112378SN/A Source(f) 1121885SN/A