SConscript revision 4249:3a3be2b708b0
12817Sksewell@umich.edu# -*- mode:python -*- 22817Sksewell@umich.edu 32817Sksewell@umich.edu# Copyright (c) 2005-2006 The Regents of The University of Michigan 42817Sksewell@umich.edu# All rights reserved. 52817Sksewell@umich.edu# 62817Sksewell@umich.edu# Redistribution and use in source and binary forms, with or without 72817Sksewell@umich.edu# modification, are permitted provided that the following conditions are 82817Sksewell@umich.edu# met: redistributions of source code must retain the above copyright 92817Sksewell@umich.edu# notice, this list of conditions and the following disclaimer; 102817Sksewell@umich.edu# redistributions in binary form must reproduce the above copyright 112817Sksewell@umich.edu# notice, this list of conditions and the following disclaimer in the 122817Sksewell@umich.edu# documentation and/or other materials provided with the distribution; 132817Sksewell@umich.edu# neither the name of the copyright holders nor the names of its 142817Sksewell@umich.edu# contributors may be used to endorse or promote products derived from 152817Sksewell@umich.edu# this software without specific prior written permission. 162817Sksewell@umich.edu# 172817Sksewell@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182817Sksewell@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192817Sksewell@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202817Sksewell@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212817Sksewell@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222817Sksewell@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232817Sksewell@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242817Sksewell@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252817Sksewell@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262817Sksewell@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272817Sksewell@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282817Sksewell@umich.edu# 294202Sbinkertn@umich.edu# Authors: Gabe Black 302817Sksewell@umich.edu 312817Sksewell@umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 322817Sksewell@umich.edu# All rights reserved. 334202Sbinkertn@umich.edu# 342817Sksewell@umich.edu# Redistribution and use of this software in source and binary forms, 354202Sbinkertn@umich.edu# with or without modification, are permitted provided that the 364486Sbinkertn@umich.edu# following conditions are met: 374486Sbinkertn@umich.edu# 384486Sbinkertn@umich.edu# The software must be used only for Non-Commercial Use which means any 394486Sbinkertn@umich.edu# use which is NOT directed to receiving any direct monetary 404202Sbinkertn@umich.edu# compensation for, or commercial advantage from such use. Illustrative 414202Sbinkertn@umich.edu# examples of non-commercial use are academic research, personal study, 424202Sbinkertn@umich.edu# teaching, education and corporate research & development. 439341SAndreas.Sandberg@arm.com# Illustrative examples of commercial use are distributing products for 444202Sbinkertn@umich.edu# commercial advantage and providing services using the software for 455597Sgblack@eecs.umich.edu# commercial advantage. 464202Sbinkertn@umich.edu# 474202Sbinkertn@umich.edu# If you wish to use this software or functionality therein that may be 484202Sbinkertn@umich.edu# covered by patents for commercial use, please contact: 494202Sbinkertn@umich.edu# Director of Intellectual Property Licensing 504202Sbinkertn@umich.edu# Office of Strategy and Technology 514202Sbinkertn@umich.edu# Hewlett-Packard Company 524202Sbinkertn@umich.edu# 1501 Page Mill Road 534202Sbinkertn@umich.edu# Palo Alto, California 94304 549919Ssteve.reinhardt@amd.com# 554202Sbinkertn@umich.edu# Redistributions of source code must retain the above copyright notice, 564202Sbinkertn@umich.edu# this list of conditions and the following disclaimer. Redistributions 574202Sbinkertn@umich.edu# in binary form must reproduce the above copyright notice, this list of 584202Sbinkertn@umich.edu# conditions and the following disclaimer in the documentation and/or 594202Sbinkertn@umich.edu# other materials provided with the distribution. Neither the name of 605597Sgblack@eecs.umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 612817Sksewell@umich.edu# contributors may be used to endorse or promote products derived from 6210426Smitch.hayenga@arm.com# this software without specific prior written permission. No right of 6310426Smitch.hayenga@arm.com# sublicense is granted herewith. Derivatives of the software and 6410426Smitch.hayenga@arm.com# output created using the software may be prepared, but only for 658335Snate@binkert.org# Non-Commercial Uses. Derivatives of the software may be shared with 668335Snate@binkert.org# others provided: (i) the others agree to abide by the list of 678335Snate@binkert.org# conditions herein which includes the Non-Commercial Use restrictions; 688335Snate@binkert.org# and (ii) such Derivatives of the software include the above copyright 698335Snate@binkert.org# notice to acknowledge the contribution from this software where 708335Snate@binkert.org# applicable, this list of conditions and the disclaimer below. 718335Snate@binkert.org# 728335Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 738335Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 745192Ssaidi@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 755192Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 765192Ssaidi@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 775192Ssaidi@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 785192Ssaidi@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 798887Sgeoffrey.blake@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 809340SAndreas.Sandberg@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 81# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 82# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 83# 84# Authors: Gabe Black 85 86Import('*') 87if env['TARGET_ISA'] == 'x86': 88 Source('floatregfile.cc') 89 Source('intregfile.cc') 90 Source('miscregfile.cc') 91 Source('predecoder.cc') 92 Source('predecoder_tables.cc') 93 Source('regfile.cc') 94 Source('remote_gdb.cc') 95 96 if env['FULL_SYSTEM']: 97 # Full-system sources 98 pass 99 else: 100 Source('process.cc') 101 102 Source('linux/linux.cc') 103 Source('linux/process.cc') 104 Source('linux/syscalls.cc') 105 106 # Add in files generated by the ISA description. 107 isa_desc_files = env.ISADesc('isa/main.isa') 108 # Only non-header files need to be compiled. 109 for f in isa_desc_files: 110 if not f.path.endswith('.hh'): 111 Source(f) 112