SConscript revision 4504
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan
4955SN/A# All rights reserved.
5955SN/A#
6955SN/A# Redistribution and use in source and binary forms, with or without
7955SN/A# modification, are permitted provided that the following conditions are
8955SN/A# met: redistributions of source code must retain the above copyright
9955SN/A# notice, this list of conditions and the following disclaimer;
10955SN/A# redistributions in binary form must reproduce the above copyright
11955SN/A# notice, this list of conditions and the following disclaimer in the
12955SN/A# documentation and/or other materials provided with the distribution;
13955SN/A# neither the name of the copyright holders nor the names of its
14955SN/A# contributors may be used to endorse or promote products derived from
15955SN/A# this software without specific prior written permission.
16955SN/A#
17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
294762Snate@binkert.org# Authors: Gabe Black
30955SN/A
314762Snate@binkert.org# Copyright (c) 2007 The Hewlett-Packard Development Company
32955SN/A# All rights reserved.
33955SN/A#
344202Sbinkertn@umich.edu# Redistribution and use of this software in source and binary forms,
354382Sbinkertn@umich.edu# with or without modification, are permitted provided that the
364202Sbinkertn@umich.edu# following conditions are met:
374762Snate@binkert.org#
384762Snate@binkert.org# The software must be used only for Non-Commercial Use which means any
394762Snate@binkert.org# use which is NOT directed to receiving any direct monetary
40955SN/A# compensation for, or commercial advantage from such use.  Illustrative
414381Sbinkertn@umich.edu# examples of non-commercial use are academic research, personal study,
424381Sbinkertn@umich.edu# teaching, education and corporate research & development.
43955SN/A# Illustrative examples of commercial use are distributing products for
44955SN/A# commercial advantage and providing services using the software for
45955SN/A# commercial advantage.
464202Sbinkertn@umich.edu#
47955SN/A# If you wish to use this software or functionality therein that may be
484382Sbinkertn@umich.edu# covered by patents for commercial use, please contact:
494382Sbinkertn@umich.edu#     Director of Intellectual Property Licensing
504382Sbinkertn@umich.edu#     Office of Strategy and Technology
514762Snate@binkert.org#     Hewlett-Packard Company
524762Snate@binkert.org#     1501 Page Mill Road
534762Snate@binkert.org#     Palo Alto, California  94304
544762Snate@binkert.org#
554762Snate@binkert.org# Redistributions of source code must retain the above copyright notice,
564762Snate@binkert.org# this list of conditions and the following disclaimer.  Redistributions
574762Snate@binkert.org# in binary form must reproduce the above copyright notice, this list of
584762Snate@binkert.org# conditions and the following disclaimer in the documentation and/or
594762Snate@binkert.org# other materials provided with the distribution.  Neither the name of
604762Snate@binkert.org# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
614762Snate@binkert.org# contributors may be used to endorse or promote products derived from
624762Snate@binkert.org# this software without specific prior written permission.  No right of
634762Snate@binkert.org# sublicense is granted herewith.  Derivatives of the software and
644762Snate@binkert.org# output created using the software may be prepared, but only for
654762Snate@binkert.org# Non-Commercial Uses.  Derivatives of the software may be shared with
664762Snate@binkert.org# 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
694762Snate@binkert.org# notice to acknowledge the contribution from this software where
704762Snate@binkert.org# applicable, this list of conditions and the disclaimer below.
714762Snate@binkert.org#
724762Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
734762Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
744762Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
754762Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
764762Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
774762Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
784762Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
794762Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
804762Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
814762Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
824762Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
834762Snate@binkert.org#
844382Sbinkertn@umich.edu# Authors: Gabe Black
854762Snate@binkert.org
864382Sbinkertn@umich.eduImport('*')
874762Snate@binkert.orgif env['TARGET_ISA'] == 'x86':
884381Sbinkertn@umich.edu    Source('floatregfile.cc')
894762Snate@binkert.org    Source('intregfile.cc')
904762Snate@binkert.org    Source('miscregfile.cc')
914762Snate@binkert.org    Source('predecoder.cc')
924762Snate@binkert.org    Source('predecoder_tables.cc')
934762Snate@binkert.org    Source('regfile.cc')
944762Snate@binkert.org    Source('remote_gdb.cc')
954762Snate@binkert.org
964762Snate@binkert.org    if env['FULL_SYSTEM']:
974762Snate@binkert.org        # Full-system sources
984762Snate@binkert.org        pass
994762Snate@binkert.org    else:
1004762Snate@binkert.org        Source('process.cc')
1014762Snate@binkert.org
1024762Snate@binkert.org        Source('linux/linux.cc')
1034762Snate@binkert.org        Source('linux/process.cc')
1044762Snate@binkert.org        Source('linux/syscalls.cc')
1054762Snate@binkert.org
1064762Snate@binkert.org    # Add in files generated by the ISA description.
1074762Snate@binkert.org    isa_desc_files = env.ISADesc('isa/main.isa')
1084762Snate@binkert.org    # Only non-header files need to be compiled.
1094762Snate@binkert.org    for f in isa_desc_files:
1104762Snate@binkert.org        if not f.path.endswith('.hh'):
1114762Snate@binkert.org            Source(f)
1124762Snate@binkert.org