SConscript revision 4762
1955SN/A# -*- mode:python -*- 2955SN/A 31762SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan 4955SN/A# All rights reserved. 5955SN/A# 6955SN/A# Redistribution and use in source and binary forms, with or without 7955SN/A# modification, are permitted provided that the following conditions are 8955SN/A# met: redistributions of source code must retain the above copyright 9955SN/A# notice, this list of conditions and the following disclaimer; 10955SN/A# redistributions in binary form must reproduce the above copyright 11955SN/A# notice, this list of conditions and the following disclaimer in the 12955SN/A# documentation and/or other materials provided with the distribution; 13955SN/A# neither the name of the copyright holders nor the names of its 14955SN/A# contributors may be used to endorse or promote products derived from 15955SN/A# this software without specific prior written permission. 16955SN/A# 17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 294762Snate@binkert.org# Authors: Gabe Black 30955SN/A 315522Snate@binkert.org# Copyright (c) 2007 The Hewlett-Packard Development Company 324762Snate@binkert.org# All rights reserved. 335522Snate@binkert.org# 34955SN/A# Redistribution and use of this software in source and binary forms, 355522Snate@binkert.org# with or without modification, are permitted provided that the 36955SN/A# following conditions are met: 375522Snate@binkert.org# 384202Sbinkertn@umich.edu# The software must be used only for Non-Commercial Use which means any 395742Snate@binkert.org# use which is NOT directed to receiving any direct monetary 40955SN/A# compensation for, or commercial advantage from such use. Illustrative 414381Sbinkertn@umich.edu# examples of non-commercial use are academic research, personal study, 424381Sbinkertn@umich.edu# teaching, education and corporate research & development. 43955SN/A# Illustrative examples of commercial use are distributing products for 44955SN/A# commercial advantage and providing services using the software for 45955SN/A# commercial advantage. 464202Sbinkertn@umich.edu# 47955SN/A# If you wish to use this software or functionality therein that may be 484382Sbinkertn@umich.edu# covered by patents for commercial use, please contact: 494382Sbinkertn@umich.edu# Director of Intellectual Property Licensing 504382Sbinkertn@umich.edu# Office of Strategy and Technology 515863Snate@binkert.org# Hewlett-Packard Company 525517Snate@binkert.org# 1501 Page Mill Road 534762Snate@binkert.org# Palo Alto, California 94304 544762Snate@binkert.org# 554762Snate@binkert.org# Redistributions of source code must retain the above copyright notice, 564762Snate@binkert.org# this list of conditions and the following disclaimer. Redistributions 574762Snate@binkert.org# in binary form must reproduce the above copyright notice, this list of 584762Snate@binkert.org# conditions and the following disclaimer in the documentation and/or 594762Snate@binkert.org# other materials provided with the distribution. Neither the name of 604762Snate@binkert.org# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 614762Snate@binkert.org# contributors may be used to endorse or promote products derived from 624762Snate@binkert.org# this software without specific prior written permission. No right of 635522Snate@binkert.org# sublicense is granted herewith. Derivatives of the software and 645604Snate@binkert.org# output created using the software may be prepared, but only for 655604Snate@binkert.org# Non-Commercial Uses. Derivatives of the software may be shared with 665604Snate@binkert.org# others provided: (i) the others agree to abide by the list of 674762Snate@binkert.org# conditions herein which includes the Non-Commercial Use restrictions; 684762Snate@binkert.org# and (ii) such Derivatives of the software include the above copyright 694762Snate@binkert.org# notice to acknowledge the contribution from this software where 705522Snate@binkert.org# applicable, this list of conditions and the disclaimer below. 715522Snate@binkert.org# 725522Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 735522Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 745604Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 755604Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 764762Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 774762Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 784762Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 794762Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 805522Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 814762Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 824762Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 835604Snate@binkert.org# 845604Snate@binkert.org# Authors: Gabe Black 855604Snate@binkert.org 865604Snate@binkert.orgImport('*') 875604Snate@binkert.orgif env['TARGET_ISA'] == 'x86': 885604Snate@binkert.org Source('emulenv.cc') 894762Snate@binkert.org Source('floatregfile.cc') 904762Snate@binkert.org Source('insts/microldstop.cc') 914762Snate@binkert.org Source('insts/microregop.cc') 924762Snate@binkert.org Source('insts/static_inst.cc') 935604Snate@binkert.org Source('intregfile.cc') 944762Snate@binkert.org Source('miscregfile.cc') 955522Snate@binkert.org Source('predecoder.cc') 965522Snate@binkert.org Source('predecoder_tables.cc') 975522Snate@binkert.org Source('regfile.cc') 984762Snate@binkert.org Source('remote_gdb.cc') 994382Sbinkertn@umich.edu 1004762Snate@binkert.org if env['FULL_SYSTEM']: 1014382Sbinkertn@umich.edu # Full-system sources 1025522Snate@binkert.org pass 1034381Sbinkertn@umich.edu else: 1045522Snate@binkert.org Source('process.cc') 1054762Snate@binkert.org 1064762Snate@binkert.org Source('linux/linux.cc') 1074762Snate@binkert.org Source('linux/process.cc') 1085522Snate@binkert.org Source('linux/syscalls.cc') 1095522Snate@binkert.org 1105522Snate@binkert.org # Add in files generated by the ISA description. 1115522Snate@binkert.org isa_desc_files = env.ISADesc('isa/main.isa') 1125522Snate@binkert.org # Only non-header files need to be compiled. 1135522Snate@binkert.org for f in isa_desc_files: 1145522Snate@binkert.org if not f.path.endswith('.hh'): 1155522Snate@binkert.org Source(f) 1165522Snate@binkert.org