SConscript revision 4679
12086SN/A# -*- mode:python -*- 22086SN/A 35268Sksewell@umich.edu# Copyright (c) 2005-2006 The Regents of The University of Michigan 42086SN/A# All rights reserved. 52086SN/A# 62086SN/A# Redistribution and use in source and binary forms, with or without 72086SN/A# modification, are permitted provided that the following conditions are 82086SN/A# met: redistributions of source code must retain the above copyright 92086SN/A# notice, this list of conditions and the following disclaimer; 102086SN/A# redistributions in binary form must reproduce the above copyright 112086SN/A# notice, this list of conditions and the following disclaimer in the 122086SN/A# documentation and/or other materials provided with the distribution; 132086SN/A# neither the name of the copyright holders nor the names of its 142086SN/A# contributors may be used to endorse or promote products derived from 152086SN/A# this software without specific prior written permission. 162086SN/A# 172086SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182086SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192086SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202086SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212086SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222086SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232086SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242086SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252086SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262086SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272086SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Gabe Black 302665Ssaidi@eecs.umich.edu 312686Sksewell@umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 322086SN/A# All rights reserved. 334202Sbinkertn@umich.edu# 342086SN/A# Redistribution and use of this software in source and binary forms, 354202Sbinkertn@umich.edu# with or without modification, are permitted provided that the 364202Sbinkertn@umich.edu# following conditions are met: 376313Sgblack@eecs.umich.edu# 384997Sgblack@eecs.umich.edu# The software must be used only for Non-Commercial Use which means any 395222Sksewell@umich.edu# use which is NOT directed to receiving any direct monetary 404202Sbinkertn@umich.edu# compensation for, or commercial advantage from such use. Illustrative 415222Sksewell@umich.edu# examples of non-commercial use are academic research, personal study, 424997Sgblack@eecs.umich.edu# teaching, education and corporate research & development. 434997Sgblack@eecs.umich.edu# Illustrative examples of commercial use are distributing products for 448335Snate@binkert.org# commercial advantage and providing services using the software for 455192Ssaidi@eecs.umich.edu# commercial advantage. 464202Sbinkertn@umich.edu# 477799Sgblack@eecs.umich.edu# If you wish to use this software or functionality therein that may be 487799Sgblack@eecs.umich.edu# covered by patents for commercial use, please contact: 495222Sksewell@umich.edu# Director of Intellectual Property Licensing 505222Sksewell@umich.edu# Office of Strategy and Technology 515222Sksewell@umich.edu# Hewlett-Packard Company 525222Sksewell@umich.edu# 1501 Page Mill Road 535222Sksewell@umich.edu# Palo Alto, California 94304 545222Sksewell@umich.edu# 557799Sgblack@eecs.umich.edu# Redistributions of source code must retain the above copyright notice, 565222Sksewell@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 604202Sbinkertn@umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 612086SN/A# contributors may be used to endorse or promote products derived from 624202Sbinkertn@umich.edu# this software without specific prior written permission. No right of 634202Sbinkertn@umich.edu# sublicense is granted herewith. Derivatives of the software and 644202Sbinkertn@umich.edu# output created using the software may be prepared, but only for 654202Sbinkertn@umich.edu# Non-Commercial Uses. Derivatives of the software may be shared with 664202Sbinkertn@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; 68# and (ii) such Derivatives of the software include the above copyright 69# notice to acknowledge the contribution from this software where 70# applicable, this list of conditions and the disclaimer below. 71# 72# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 73# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 74# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 75# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 76# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 77# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 78# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 79# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 80# 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('emulenv.cc') 89 Source('floatregfile.cc') 90 Source('insts/microldstop.cc') 91 Source('insts/microregop.cc') 92 Source('insts/static_inst.cc') 93 Source('intregfile.cc') 94 Source('miscregfile.cc') 95 Source('predecoder.cc') 96 Source('predecoder_tables.cc') 97 Source('regfile.cc') 98 Source('remote_gdb.cc') 99 100 if env['FULL_SYSTEM']: 101 # Full-system sources 102 pass 103 else: 104 Source('process.cc') 105 106 Source('linux/linux.cc') 107 Source('linux/process.cc') 108 Source('linux/syscalls.cc') 109 110 # Add in files generated by the ISA description. 111 isa_desc_files = env.ISADesc('isa/main.isa') 112 # Only non-header files need to be compiled. 113 for f in isa_desc_files: 114 if not f.path.endswith('.hh'): 115 Source(f) 116