SConscript revision 5016
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
312086SN/A# Copyright (c) 2007 The Hewlett-Packard Development Company
324202Sbinkertn@umich.edu# All rights reserved.
332086SN/A#
344202Sbinkertn@umich.edu# 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
394202Sbinkertn@umich.edu# use which is NOT directed to receiving any direct monetary
404997Sgblack@eecs.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.
434997Sgblack@eecs.umich.edu# Illustrative examples of commercial use are distributing products for
444826Ssaidi@eecs.umich.edu# commercial advantage and providing services using the software for
452086SN/A# commercial advantage.
464997Sgblack@eecs.umich.edu#
474997Sgblack@eecs.umich.edu# If you wish to use this software or functionality therein that may be
484202Sbinkertn@umich.edu# covered by patents for commercial use, please contact:
494486Sbinkertn@umich.edu#     Director of Intellectual Property Licensing
504486Sbinkertn@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#
554202Sbinkertn@umich.edu# Redistributions of source code must retain the above copyright notice,
564202Sbinkertn@umich.edu# this list of conditions and the following disclaimer.  Redistributions
572086SN/A# 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
642086SN/A# 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;
684202Sbinkertn@umich.edu# and (ii) such Derivatives of the software include the above copyright
694202Sbinkertn@umich.edu# notice to acknowledge the contribution from this software where
704202Sbinkertn@umich.edu# 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