SConscript revision 4781
12155SN/A# -*- mode:python -*- 22155SN/A 32155SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan 42155SN/A# All rights reserved. 52155SN/A# 62155SN/A# Redistribution and use in source and binary forms, with or without 72155SN/A# modification, are permitted provided that the following conditions are 82155SN/A# met: redistributions of source code must retain the above copyright 92155SN/A# notice, this list of conditions and the following disclaimer; 102155SN/A# redistributions in binary form must reproduce the above copyright 112155SN/A# notice, this list of conditions and the following disclaimer in the 122155SN/A# documentation and/or other materials provided with the distribution; 132155SN/A# neither the name of the copyright holders nor the names of its 142155SN/A# contributors may be used to endorse or promote products derived from 152155SN/A# this software without specific prior written permission. 162155SN/A# 172155SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182155SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192155SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202155SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212155SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222155SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232155SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242155SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252155SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262155SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272155SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Gabe Black 302155SN/A 314202Sbinkertn@umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 322155SN/A# All rights reserved. 337768SAli.Saidi@ARM.com# 347768SAli.Saidi@ARM.com# Redistribution and use of this software in source and binary forms, 357768SAli.Saidi@ARM.com# with or without modification, are permitted provided that the 362178SN/A# following conditions are met: 372178SN/A# 382178SN/A# The software must be used only for Non-Commercial Use which means any 392178SN/A# use which is NOT directed to receiving any direct monetary 402178SN/A# compensation for, or commercial advantage from such use. Illustrative 412178SN/A# examples of non-commercial use are academic research, personal study, 422178SN/A# teaching, education and corporate research & development. 432178SN/A# Illustrative examples of commercial use are distributing products for 442178SN/A# commercial advantage and providing services using the software for 452178SN/A# commercial advantage. 462178SN/A# 472155SN/A# If you wish to use this software or functionality therein that may be 485865Sksewell@umich.edu# covered by patents for commercial use, please contact: 496181Sksewell@umich.edu# Director of Intellectual Property Licensing 506181Sksewell@umich.edu# Office of Strategy and Technology 515865Sksewell@umich.edu# Hewlett-Packard Company 523918Ssaidi@eecs.umich.edu# 1501 Page Mill Road 535865Sksewell@umich.edu# Palo Alto, California 94304 542623SN/A# 553918Ssaidi@eecs.umich.edu# Redistributions of source code must retain the above copyright notice, 562155SN/A# this list of conditions and the following disclaimer. Redistributions 572155SN/A# in binary form must reproduce the above copyright notice, this list of 582292SN/A# conditions and the following disclaimer in the documentation and/or 596181Sksewell@umich.edu# other materials provided with the distribution. Neither the name of 606181Sksewell@umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 613918Ssaidi@eecs.umich.edu# contributors may be used to endorse or promote products derived from 622292SN/A# this software without specific prior written permission. No right of 632292SN/A# sublicense is granted herewith. Derivatives of the software and 642292SN/A# output created using the software may be prepared, but only for 653918Ssaidi@eecs.umich.edu# Non-Commercial Uses. Derivatives of the software may be shared with 662292SN/A# others provided: (i) the others agree to abide by the list of 672292SN/A# conditions herein which includes the Non-Commercial Use restrictions; 682766Sktlim@umich.edu# and (ii) such Derivatives of the software include the above copyright 692766Sktlim@umich.edu# notice to acknowledge the contribution from this software where 702766Sktlim@umich.edu# applicable, this list of conditions and the disclaimer below. 712921Sktlim@umich.edu# 728887Sgeoffrey.blake@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 738887Sgeoffrey.blake@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 742766Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 754762Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 762155SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 772155SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 782155SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 792155SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 802155SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 812155SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 822766Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 832155SN/A# 845865Sksewell@umich.edu# Authors: Gabe Black 852155SN/A 862155SN/AImport('*') 872155SN/Aif env['TARGET_ISA'] == 'x86': 882155SN/A Source('emulenv.cc') 892178SN/A Source('floatregfile.cc') 902178SN/A Source('insts/microldstop.cc') 917756SAli.Saidi@ARM.com Source('insts/microregop.cc') 922766Sktlim@umich.edu Source('insts/static_inst.cc') 932178SN/A Source('intregfile.cc') 942178SN/A Source('miscregfile.cc') 956994Snate@binkert.org Source('predecoder.cc') 962178SN/A Source('predecoder_tables.cc') 972766Sktlim@umich.edu Source('regfile.cc') 982766Sktlim@umich.edu Source('remote_gdb.cc') 992788Sktlim@umich.edu 1002178SN/A if env['FULL_SYSTEM']: 1014486Sbinkertn@umich.edu # Full-system sources 1024486Sbinkertn@umich.edu pass 1034776Sgblack@eecs.umich.edu else: 1044776Sgblack@eecs.umich.edu Source('process.cc') 1058739Sgblack@eecs.umich.edu 1066365Sgblack@eecs.umich.edu Source('linux/linux.cc') 1074486Sbinkertn@umich.edu Source('linux/process.cc') 1084202Sbinkertn@umich.edu Source('linux/syscalls.cc') 1094202Sbinkertn@umich.edu 1104202Sbinkertn@umich.edu # Add in files generated by the ISA description. 1118541Sgblack@eecs.umich.edu isa_desc_files = env.ISADesc('isa/main.isa') 1124202Sbinkertn@umich.edu # Only non-header files need to be compiled. 1134202Sbinkertn@umich.edu for f in isa_desc_files: 1144776Sgblack@eecs.umich.edu if not f.path.endswith('.hh'): 1158739Sgblack@eecs.umich.edu Source(f) 1166365Sgblack@eecs.umich.edu