SConscript revision 4381
12086SN/A# -*- mode:python -*-
22086SN/A
32086SN/A# 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.
332086SN/A#
342086SN/A# Redistribution and use of this software in source and binary forms,
352086SN/A# with or without modification, are permitted provided that the
362086SN/A# following conditions are met:
372086SN/A#
382086SN/A# The software must be used only for Non-Commercial Use which means any
392086SN/A# use which is NOT directed to receiving any direct monetary
402086SN/A# compensation for, or commercial advantage from such use.  Illustrative
412086SN/A# examples of non-commercial use are academic research, personal study,
422086SN/A# teaching, education and corporate research & development.
432086SN/A# Illustrative examples of commercial use are distributing products for
442086SN/A# commercial advantage and providing services using the software for
452086SN/A# commercial advantage.
462086SN/A#
472152SN/A# If you wish to use this software or functionality therein that may be
482152SN/A# covered by patents for commercial use, please contact:
492152SN/A#     Director of Intellectual Property Licensing
502686Sksewell@umich.edu#     Office of Strategy and Technology
512086SN/A#     Hewlett-Packard Company
522086SN/A#     1501 Page Mill Road
532086SN/A#     Palo Alto, California  94304
542152SN/A#
552745Sksewell@umich.edu# Redistributions of source code must retain the above copyright notice,
562086SN/A# this list of conditions and the following disclaimer.  Redistributions
572086SN/A# in binary form must reproduce the above copyright notice, this list of
582086SN/A# conditions and the following disclaimer in the documentation and/or
592152SN/A# other materials provided with the distribution.  Neither the name of
602597SN/A# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
612597SN/A# contributors may be used to endorse or promote products derived from
622447SN/A# this software without specific prior written permission.  No right of
632086SN/A# sublicense is granted herewith.  Derivatives of the software and
642086SN/A# output created using the software may be prepared, but only for
652086SN/A# Non-Commercial Uses.  Derivatives of the software may be shared with
662152SN/A# others provided: (i) the others agree to abide by the list of
672086SN/A# conditions herein which includes the Non-Commercial Use restrictions;
682086SN/A# and (ii) such Derivatives of the software include the above copyright
692152SN/A# notice to acknowledge the contribution from this software where
702086SN/A# applicable, this list of conditions and the disclaimer below.
712152SN/A#
722086SN/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
802152SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
812152SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
822086SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
832086SN/A#
84# Authors: Gabe Black
85
86Import('*')
87if env['TARGET_ISA'] == 'x86':
88    Source('floatregfile.cc')
89    Source('intregfile.cc')
90    Source('miscregfile.cc')
91    Source('predecoder.cc')
92    Source('predecoder_tables.cc')
93    Source('regfile.cc')
94    Source('remote_gdb.cc')
95
96    if env['FULL_SYSTEM']:
97        # Full-system sources
98        pass
99    else:
100        Source('process.cc')
101
102        Source('linux/linux.cc')
103        Source('linux/process.cc')
104        Source('linux/syscalls.cc')
105
106    # Add in files generated by the ISA description.
107    isa_desc_files = env.ISADesc('isa/main.isa')
108    # Only non-header files need to be compiled.
109    for f in isa_desc_files:
110        if not f.path.endswith('.hh'):
111            Source(f)
112