SConscript revision 4997
12929Sktlim@umich.edu# -*- mode:python -*- 22929Sktlim@umich.edu 32932Sktlim@umich.edu# Copyright (c) 2005-2006 The Regents of The University of Michigan 42929Sktlim@umich.edu# All rights reserved. 52929Sktlim@umich.edu# 62929Sktlim@umich.edu# Redistribution and use in source and binary forms, with or without 72929Sktlim@umich.edu# modification, are permitted provided that the following conditions are 82929Sktlim@umich.edu# met: redistributions of source code must retain the above copyright 92929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer; 102929Sktlim@umich.edu# redistributions in binary form must reproduce the above copyright 112929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer in the 122929Sktlim@umich.edu# documentation and/or other materials provided with the distribution; 132929Sktlim@umich.edu# neither the name of the copyright holders nor the names of its 142929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from 152929Sktlim@umich.edu# this software without specific prior written permission. 162929Sktlim@umich.edu# 172929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202929Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282932Sktlim@umich.edu# 292932Sktlim@umich.edu# Authors: Gabe Black 302932Sktlim@umich.edu 312929Sktlim@umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 326007Ssteve.reinhardt@amd.com# All rights reserved. 332929Sktlim@umich.edu# 342929Sktlim@umich.edu# Redistribution and use of this software in source and binary forms, 352929Sktlim@umich.edu# with or without modification, are permitted provided that the 362929Sktlim@umich.edu# following conditions are met: 372929Sktlim@umich.edu# 382929Sktlim@umich.edu# The software must be used only for Non-Commercial Use which means any 392929Sktlim@umich.edu# use which is NOT directed to receiving any direct monetary 402929Sktlim@umich.edu# compensation for, or commercial advantage from such use. Illustrative 412929Sktlim@umich.edu# examples of non-commercial use are academic research, personal study, 422929Sktlim@umich.edu# teaching, education and corporate research & development. 432929Sktlim@umich.edu# Illustrative examples of commercial use are distributing products for 442929Sktlim@umich.edu# commercial advantage and providing services using the software for 452929Sktlim@umich.edu# commercial advantage. 462929Sktlim@umich.edu# 476007Ssteve.reinhardt@amd.com# If you wish to use this software or functionality therein that may be 486007Ssteve.reinhardt@amd.com# covered by patents for commercial use, please contact: 496007Ssteve.reinhardt@amd.com# Director of Intellectual Property Licensing 506007Ssteve.reinhardt@amd.com# Office of Strategy and Technology 516007Ssteve.reinhardt@amd.com# Hewlett-Packard Company 526007Ssteve.reinhardt@amd.com# 1501 Page Mill Road 536007Ssteve.reinhardt@amd.com# Palo Alto, California 94304 546007Ssteve.reinhardt@amd.com# 556007Ssteve.reinhardt@amd.com# Redistributions of source code must retain the above copyright notice, 566007Ssteve.reinhardt@amd.com# this list of conditions and the following disclaimer. Redistributions 576007Ssteve.reinhardt@amd.com# in binary form must reproduce the above copyright notice, this list of 586007Ssteve.reinhardt@amd.com# conditions and the following disclaimer in the documentation and/or 596007Ssteve.reinhardt@amd.com# other materials provided with the distribution. Neither the name of 606007Ssteve.reinhardt@amd.com# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 616007Ssteve.reinhardt@amd.com# contributors may be used to endorse or promote products derived from 626007Ssteve.reinhardt@amd.com# this software without specific prior written permission. No right of 636007Ssteve.reinhardt@amd.com# sublicense is granted herewith. Derivatives of the software and 646007Ssteve.reinhardt@amd.com# output created using the software may be prepared, but only for 656007Ssteve.reinhardt@amd.com# Non-Commercial Uses. Derivatives of the software may be shared with 666007Ssteve.reinhardt@amd.com# others provided: (i) the others agree to abide by the list of 676007Ssteve.reinhardt@amd.com# conditions herein which includes the Non-Commercial Use restrictions; 686007Ssteve.reinhardt@amd.com# and (ii) such Derivatives of the software include the above copyright 696007Ssteve.reinhardt@amd.com# notice to acknowledge the contribution from this software where 706007Ssteve.reinhardt@amd.com# applicable, this list of conditions and the disclaimer below. 716007Ssteve.reinhardt@amd.com# 726007Ssteve.reinhardt@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 736007Ssteve.reinhardt@amd.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 746007Ssteve.reinhardt@amd.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 756007Ssteve.reinhardt@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 762929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 772929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 782929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 796007Ssteve.reinhardt@amd.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 806007Ssteve.reinhardt@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 816007Ssteve.reinhardt@amd.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 826007Ssteve.reinhardt@amd.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 836007Ssteve.reinhardt@amd.com# 846007Ssteve.reinhardt@amd.com# Authors: Gabe Black 852929Sktlim@umich.edu 862929Sktlim@umich.eduImport('*') 872929Sktlim@umich.eduif env['TARGET_ISA'] == 'x86': 882929Sktlim@umich.edu Source('emulenv.cc') 892929Sktlim@umich.edu Source('floatregfile.cc') 906011Ssteve.reinhardt@amd.com Source('insts/microldstop.cc') 916007Ssteve.reinhardt@amd.com Source('insts/microregop.cc') 926007Ssteve.reinhardt@amd.com Source('insts/static_inst.cc') 936007Ssteve.reinhardt@amd.com Source('intregfile.cc') 946007Ssteve.reinhardt@amd.com Source('miscregfile.cc') 956007Ssteve.reinhardt@amd.com Source('predecoder.cc') 966007Ssteve.reinhardt@amd.com Source('predecoder_tables.cc') 976007Ssteve.reinhardt@amd.com Source('regfile.cc') 986007Ssteve.reinhardt@amd.com Source('remote_gdb.cc') 996007Ssteve.reinhardt@amd.com Source('tlb.cc') 1006007Ssteve.reinhardt@amd.com 1016007Ssteve.reinhardt@amd.com SimObject('X86TLB.py') 1026007Ssteve.reinhardt@amd.com 1036007Ssteve.reinhardt@amd.com if env['FULL_SYSTEM']: 1046007Ssteve.reinhardt@amd.com # Full-system sources 1056011Ssteve.reinhardt@amd.com pass 1066007Ssteve.reinhardt@amd.com else: 1076007Ssteve.reinhardt@amd.com Source('process.cc') 1086007Ssteve.reinhardt@amd.com 1096007Ssteve.reinhardt@amd.com Source('linux/linux.cc') 1106007Ssteve.reinhardt@amd.com Source('linux/process.cc') 1116007Ssteve.reinhardt@amd.com Source('linux/syscalls.cc') 1126007Ssteve.reinhardt@amd.com 1136011Ssteve.reinhardt@amd.com # Add in files generated by the ISA description. 1146007Ssteve.reinhardt@amd.com isa_desc_files = env.ISADesc('isa/main.isa') 1156007Ssteve.reinhardt@amd.com # Only non-header files need to be compiled. 1166007Ssteve.reinhardt@amd.com for f in isa_desc_files: 1176007Ssteve.reinhardt@amd.com if not f.path.endswith('.hh'): 1186007Ssteve.reinhardt@amd.com Source(f) 1196007Ssteve.reinhardt@amd.com