SConscript revision 4997
15131Sgblack@eecs.umich.edu# -*- mode:python -*- 25131Sgblack@eecs.umich.edu 35131Sgblack@eecs.umich.edu# Copyright (c) 2005-2006 The Regents of The University of Michigan 45131Sgblack@eecs.umich.edu# All rights reserved. 55131Sgblack@eecs.umich.edu# 65131Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 75131Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are 85131Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright 95131Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 105131Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 115131Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 125131Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution; 135131Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its 145131Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 155131Sgblack@eecs.umich.edu# this software without specific prior written permission. 165131Sgblack@eecs.umich.edu# 175131Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 185131Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 195131Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 205131Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 215131Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 225131Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 235131Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 245131Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 255131Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 265131Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 275131Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 285131Sgblack@eecs.umich.edu# 295390Sgblack@eecs.umich.edu# Authors: Gabe Black 305131Sgblack@eecs.umich.edu 315131Sgblack@eecs.umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 325131Sgblack@eecs.umich.edu# All rights reserved. 335131Sgblack@eecs.umich.edu# 345638Sgblack@eecs.umich.edu# Redistribution and use of this software in source and binary forms, 355629Sgblack@eecs.umich.edu# with or without modification, are permitted provided that the 365131Sgblack@eecs.umich.edu# following conditions are met: 375637Sgblack@eecs.umich.edu# 385637Sgblack@eecs.umich.edu# The software must be used only for Non-Commercial Use which means any 395637Sgblack@eecs.umich.edu# use which is NOT directed to receiving any direct monetary 405629Sgblack@eecs.umich.edu# compensation for, or commercial advantage from such use. Illustrative 415629Sgblack@eecs.umich.edu# examples of non-commercial use are academic research, personal study, 425629Sgblack@eecs.umich.edu# teaching, education and corporate research & development. 435630Sgblack@eecs.umich.edu# Illustrative examples of commercial use are distributing products for 445630Sgblack@eecs.umich.edu# commercial advantage and providing services using the software for 455630Sgblack@eecs.umich.edu# commercial advantage. 465630Sgblack@eecs.umich.edu# 475633Sgblack@eecs.umich.edu# If you wish to use this software or functionality therein that may be 485636Sgblack@eecs.umich.edu# covered by patents for commercial use, please contact: 495636Sgblack@eecs.umich.edu# Director of Intellectual Property Licensing 505642Sgblack@eecs.umich.edu# Office of Strategy and Technology 515636Sgblack@eecs.umich.edu# Hewlett-Packard Company 525818Sgblack@eecs.umich.edu# 1501 Page Mill Road 535818Sgblack@eecs.umich.edu# Palo Alto, California 94304 545818Sgblack@eecs.umich.edu# 555818Sgblack@eecs.umich.edu# Redistributions of source code must retain the above copyright notice, 565831Sgblack@eecs.umich.edu# this list of conditions and the following disclaimer. Redistributions 575831Sgblack@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of 585831Sgblack@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or 595831Sgblack@eecs.umich.edu# other materials provided with the distribution. Neither the name of 605636Sgblack@eecs.umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 615636Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 625636Sgblack@eecs.umich.edu# this software without specific prior written permission. No right of 635636Sgblack@eecs.umich.edu# sublicense is granted herewith. Derivatives of the software and 645643Sgblack@eecs.umich.edu# output created using the software may be prepared, but only for 655643Sgblack@eecs.umich.edu# Non-Commercial Uses. Derivatives of the software may be shared with 665643Sgblack@eecs.umich.edu# others provided: (i) the others agree to abide by the list of 675643Sgblack@eecs.umich.edu# conditions herein which includes the Non-Commercial Use restrictions; 685633Sgblack@eecs.umich.edu# and (ii) such Derivatives of the software include the above copyright 695633Sgblack@eecs.umich.edu# 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 Source('tlb.cc') 100 101 SimObject('X86TLB.py') 102 103 if env['FULL_SYSTEM']: 104 # Full-system sources 105 pass 106 else: 107 Source('process.cc') 108 109 Source('linux/linux.cc') 110 Source('linux/process.cc') 111 Source('linux/syscalls.cc') 112 113 # Add in files generated by the ISA description. 114 isa_desc_files = env.ISADesc('isa/main.isa') 115 # Only non-header files need to be compiled. 116 for f in isa_desc_files: 117 if not f.path.endswith('.hh'): 118 Source(f) 119