SConscript revision 4776
12139SN/A# -*- mode:python -*- 22139SN/A 32139SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan 42139SN/A# All rights reserved. 52139SN/A# 62139SN/A# Redistribution and use in source and binary forms, with or without 72139SN/A# modification, are permitted provided that the following conditions are 82139SN/A# met: redistributions of source code must retain the above copyright 92139SN/A# notice, this list of conditions and the following disclaimer; 102139SN/A# redistributions in binary form must reproduce the above copyright 112139SN/A# notice, this list of conditions and the following disclaimer in the 122139SN/A# documentation and/or other materials provided with the distribution; 132139SN/A# neither the name of the copyright holders nor the names of its 142139SN/A# contributors may be used to endorse or promote products derived from 152139SN/A# this software without specific prior written permission. 162139SN/A# 172139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192139SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222139SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232139SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Gabe Black 302139SN/A 314202Sbinkertn@umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 322139SN/A# All rights reserved. 334202Sbinkertn@umich.edu# 342152SN/A# Redistribution and use of this software in source and binary forms, 352152SN/A# with or without modification, are permitted provided that the 362139SN/A# following conditions are met: 372139SN/A# 382139SN/A# The software must be used only for Non-Commercial Use which means any 392139SN/A# use which is NOT directed to receiving any direct monetary 402139SN/A# compensation for, or commercial advantage from such use. Illustrative 412152SN/A# examples of non-commercial use are academic research, personal study, 422152SN/A# teaching, education and corporate research & development. 432139SN/A# Illustrative examples of commercial use are distributing products for 442139SN/A# commercial advantage and providing services using the software for 452139SN/A# commercial advantage. 464781Snate@binkert.org# 474781Snate@binkert.org# If you wish to use this software or functionality therein that may be 484781Snate@binkert.org# covered by patents for commercial use, please contact: 494781Snate@binkert.org# Director of Intellectual Property Licensing 504781Snate@binkert.org# Office of Strategy and Technology 513170Sstever@eecs.umich.edu# Hewlett-Packard Company 525664Sgblack@eecs.umich.edu# 1501 Page Mill Road 533806Ssaidi@eecs.umich.edu# Palo Alto, California 94304 544781Snate@binkert.org# 554781Snate@binkert.org# Redistributions of source code must retain the above copyright notice, 564781Snate@binkert.org# this list of conditions and the following disclaimer. Redistributions 574781Snate@binkert.org# in binary form must reproduce the above copyright notice, this list of 584781Snate@binkert.org# conditions and the following disclaimer in the documentation and/or 594781Snate@binkert.org# other materials provided with the distribution. Neither the name of 604781Snate@binkert.org# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 614781Snate@binkert.org# contributors may be used to endorse or promote products derived from 624781Snate@binkert.org# this software without specific prior written permission. No right of 634781Snate@binkert.org# sublicense is granted herewith. Derivatives of the software and 642139SN/A# output created using the software may be prepared, but only for 652139SN/A# Non-Commercial Uses. Derivatives of the software may be shared with 663546Sgblack@eecs.umich.edu# others provided: (i) the others agree to abide by the list of 674202Sbinkertn@umich.edu# conditions herein which includes the Non-Commercial Use restrictions; 682152SN/A# and (ii) such Derivatives of the software include the above copyright 692152SN/A# notice to acknowledge the contribution from this software where 702152SN/A# applicable, this list of conditions and the disclaimer below. 712152SN/A# 722152SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 732152SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 742152SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 752152SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 762152SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 772152SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 782152SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 792152SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 802504SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 812504SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 822504SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 832504SN/A# 842152SN/A# Authors: Gabe Black 852504SN/A 862152SN/AImport('*') 872152SN/Aif env['TARGET_ISA'] == 'x86': 882152SN/A Source('emulenv.cc') 892152SN/A Source('floatregfile.cc') 902152SN/A Source('insts/microldstop.cc') 912152SN/A Source('insts/microregop.cc') 922152SN/A Source('insts/static_inst.cc') 932152SN/A Source('intregfile.cc') 942632Sstever@eecs.umich.edu Source('miscregfile.cc') 952155SN/A Source('predecoder.cc') 962155SN/A Source('predecoder_tables.cc') 972155SN/A Source('regfile.cc') 982155SN/A Source('remote_gdb.cc') 992155SN/A 1002155SN/A if env['FULL_SYSTEM']: 1015228Sgblack@eecs.umich.edu # Full-system sources 1022155SN/A pass 1032155SN/A else: 1042155SN/A Source('process.cc') 1052152SN/A 1062766Sktlim@umich.edu Source('linux/linux.cc') 1072766Sktlim@umich.edu Source('linux/process.cc') 1082766Sktlim@umich.edu Source('linux/syscalls.cc') 1092766Sktlim@umich.edu 1102766Sktlim@umich.edu # Add in files generated by the ISA description. 1112152SN/A isa_desc_files = env.ISADesc('isa/main.isa') 1122152SN/A # Only non-header files need to be compiled. 1132152SN/A for f in isa_desc_files: 1142155SN/A if not f.path.endswith('.hh'): 1152152SN/A Source(f) 1162152SN/A