SConscript revision 4601
12SN/A# -*- mode:python -*-
21762SN/A
32SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan
42SN/A# All rights reserved.
52SN/A#
62SN/A# Redistribution and use in source and binary forms, with or without
72SN/A# modification, are permitted provided that the following conditions are
82SN/A# met: redistributions of source code must retain the above copyright
92SN/A# notice, this list of conditions and the following disclaimer;
102SN/A# redistributions in binary form must reproduce the above copyright
112SN/A# notice, this list of conditions and the following disclaimer in the
122SN/A# documentation and/or other materials provided with the distribution;
132SN/A# neither the name of the copyright holders nor the names of its
142SN/A# contributors may be used to endorse or promote products derived from
152SN/A# this software without specific prior written permission.
162SN/A#
172SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272665Ssaidi@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
292665Ssaidi@eecs.umich.edu# Authors: Gabe Black
302SN/A
312SN/A# Copyright (c) 2007 The Hewlett-Packard Development Company
3211793Sbrandon.potter@amd.com# All rights reserved.
3311793Sbrandon.potter@amd.com#
342SN/A# Redistribution and use of this software in source and binary forms,
352SN/A# with or without modification, are permitted provided that the
362SN/A# following conditions are met:
375218Ssaidi@eecs.umich.edu#
381717SN/A# The software must be used only for Non-Commercial Use which means any
392680Sktlim@umich.edu# use which is NOT directed to receiving any direct monetary
408232Snate@binkert.org# compensation for, or commercial advantage from such use.  Illustrative
4156SN/A# examples of non-commercial use are academic research, personal study,
422SN/A# teaching, education and corporate research & development.
432SN/A# Illustrative examples of commercial use are distributing products for
442SN/A# commercial advantage and providing services using the software for
455034Smilesck@eecs.umich.edu# commercial advantage.
465034Smilesck@eecs.umich.edu#
472SN/A# If you wish to use this software or functionality therein that may be
482SN/A# covered by patents for commercial use, please contact:
49295SN/A#     Director of Intellectual Property Licensing
50295SN/A#     Office of Strategy and Technology
51295SN/A#     Hewlett-Packard Company
525218Ssaidi@eecs.umich.edu#     1501 Page Mill Road
534103Ssaidi@eecs.umich.edu#     Palo Alto, California  94304
545218Ssaidi@eecs.umich.edu#
5511150Smitch.hayenga@arm.com# Redistributions of source code must retain the above copyright notice,
56295SN/A# this list of conditions and the following disclaimer.  Redistributions
57295SN/A# in binary form must reproduce the above copyright notice, this list of
58295SN/A# conditions and the following disclaimer in the documentation and/or
59295SN/A# other materials provided with the distribution.  Neither the name of
60295SN/A# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
615218Ssaidi@eecs.umich.edu# contributors may be used to endorse or promote products derived from
624103Ssaidi@eecs.umich.edu# this software without specific prior written permission.  No right of
635218Ssaidi@eecs.umich.edu# sublicense is granted herewith.  Derivatives of the software and
6411150Smitch.hayenga@arm.com# output created using the software may be prepared, but only for
65295SN/A# Non-Commercial Uses.  Derivatives of the software may be shared with
66295SN/A# others provided: (i) the others agree to abide by the list of
674762Snate@binkert.org# conditions herein which includes the Non-Commercial Use restrictions;
684762Snate@binkert.org# and (ii) such Derivatives of the software include the above copyright
692SN/A# notice to acknowledge the contribution from this software where
705034Smilesck@eecs.umich.edu# applicable, this list of conditions and the disclaimer below.
712SN/A#
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('intregfile.cc')
91    Source('miscregfile.cc')
92    Source('predecoder.cc')
93    Source('predecoder_tables.cc')
94    Source('regfile.cc')
95    Source('remote_gdb.cc')
96
97    if env['FULL_SYSTEM']:
98        # Full-system sources
99        pass
100    else:
101        Source('process.cc')
102
103        Source('linux/linux.cc')
104        Source('linux/process.cc')
105        Source('linux/syscalls.cc')
106
107    # Add in files generated by the ISA description.
108    isa_desc_files = env.ISADesc('isa/main.isa')
109    # Only non-header files need to be compiled.
110    for f in isa_desc_files:
111        if not f.path.endswith('.hh'):
112            Source(f)
113