SConscript revision 4826
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.
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:
374202Sbinkertn@umich.edu#
384202Sbinkertn@umich.edu# 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
404202Sbinkertn@umich.edu# compensation for, or commercial advantage from such use.  Illustrative
414202Sbinkertn@umich.edu# examples of non-commercial use are academic research, personal study,
424202Sbinkertn@umich.edu# teaching, education and corporate research & development.
434202Sbinkertn@umich.edu# Illustrative examples of commercial use are distributing products for
444202Sbinkertn@umich.edu# commercial advantage and providing services using the software for
452086SN/A# commercial advantage.
464202Sbinkertn@umich.edu#
474202Sbinkertn@umich.edu# If you wish to use this software or functionality therein that may be
482086SN/A# covered by patents for commercial use, please contact:
494202Sbinkertn@umich.edu#     Director of Intellectual Property Licensing
504202Sbinkertn@umich.edu#     Office of Strategy and Technology
514202Sbinkertn@umich.edu#     Hewlett-Packard Company
524202Sbinkertn@umich.edu#     1501 Page Mill Road
534202Sbinkertn@umich.edu#     Palo Alto, California  94304
544202Sbinkertn@umich.edu#
55# Redistributions of source code must retain the above copyright notice,
56# this list of conditions and the following disclaimer.  Redistributions
57# in binary form must reproduce the above copyright notice, this list of
58# conditions and the following disclaimer in the documentation and/or
59# other materials provided with the distribution.  Neither the name of
60# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
61# contributors may be used to endorse or promote products derived from
62# this software without specific prior written permission.  No right of
63# sublicense is granted herewith.  Derivatives of the software and
64# output created using the software may be prepared, but only for
65# Non-Commercial Uses.  Derivatives of the software may be shared with
66# others provided: (i) the others agree to abide by the list of
67# 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