SConscript revision 3520
16019Shines@cs.fsu.edu# -*- mode:python -*-
210037SARM gem5 Developers
37399SAli.Saidi@ARM.com# Copyright (c) 2006 The Regents of The University of Michigan
47399SAli.Saidi@ARM.com# All rights reserved.
57399SAli.Saidi@ARM.com#
67399SAli.Saidi@ARM.com# Redistribution and use in source and binary forms, with or without
77399SAli.Saidi@ARM.com# modification, are permitted provided that the following conditions are
87399SAli.Saidi@ARM.com# met: redistributions of source code must retain the above copyright
97399SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer;
107399SAli.Saidi@ARM.com# redistributions in binary form must reproduce the above copyright
117399SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the
127399SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution;
137399SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its
146019Shines@cs.fsu.edu# contributors may be used to endorse or promote products derived from
156019Shines@cs.fsu.edu# this software without specific prior written permission.
166019Shines@cs.fsu.edu#
176019Shines@cs.fsu.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
186019Shines@cs.fsu.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
196019Shines@cs.fsu.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
206019Shines@cs.fsu.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
216019Shines@cs.fsu.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226019Shines@cs.fsu.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
236019Shines@cs.fsu.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
246019Shines@cs.fsu.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
256019Shines@cs.fsu.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
266019Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
276019Shines@cs.fsu.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
286019Shines@cs.fsu.edu#
296019Shines@cs.fsu.edu# Authors: Korey Sewell
306019Shines@cs.fsu.edu
316019Shines@cs.fsu.eduimport os
326019Shines@cs.fsu.eduimport os.path
336019Shines@cs.fsu.eduimport sys
346019Shines@cs.fsu.edu
356019Shines@cs.fsu.edu# Import build environment variable from SConstruct.
366019Shines@cs.fsu.eduImport('env')
376019Shines@cs.fsu.edu
386019Shines@cs.fsu.edu
396019Shines@cs.fsu.edu#################################################################
407404SAli.Saidi@ARM.com#
416019Shines@cs.fsu.edu# Include ISA-specific files for the O3 CPU-model
426019Shines@cs.fsu.edu#
436019Shines@cs.fsu.edu#################################################################
446019Shines@cs.fsu.edu
456019Shines@cs.fsu.edusources = []
4610037SARM gem5 Developers
4710037SARM gem5 Developersif env['TARGET_ISA'] == 'alpha':
486019Shines@cs.fsu.edu    sources += Split('''
496019Shines@cs.fsu.edu        alpha/dyn_inst.cc
506019Shines@cs.fsu.edu        alpha/cpu.cc
517733SAli.Saidi@ARM.com        alpha/thread_context.cc
527733SAli.Saidi@ARM.com        alpha/cpu_builder.cc
536019Shines@cs.fsu.edu        ''')
546019Shines@cs.fsu.eduelif env['TARGET_ISA'] == 'mips':
557399SAli.Saidi@ARM.com    sources += Split('''
567399SAli.Saidi@ARM.com        mips/dyn_inst.cc
577399SAli.Saidi@ARM.com        mips/cpu.cc
587399SAli.Saidi@ARM.com        mips/thread_context.cc
597399SAli.Saidi@ARM.com        mips/cpu_builder.cc
607399SAli.Saidi@ARM.com        ''')
617399SAli.Saidi@ARM.comelif env['TARGET_ISA'] == 'sparc':
627399SAli.Saidi@ARM.com    sources += Split('''
637399SAli.Saidi@ARM.com        sparc/dyn_inst.cc
647399SAli.Saidi@ARM.com        sparc/cpu.cc
656019Shines@cs.fsu.edu        sparc/thread_context.cc
667399SAli.Saidi@ARM.com        sparc/cpu_builder.cc
677399SAli.Saidi@ARM.com        ''')
686019Shines@cs.fsu.eduelse:
697399SAli.Saidi@ARM.com    sys.exit('O3 CPU does not support the \'%s\' ISA' % env['TARGET_ISA'])
707399SAli.Saidi@ARM.com
717399SAli.Saidi@ARM.com
727399SAli.Saidi@ARM.com# Convert file names to SCons File objects.  This takes care of the
736019Shines@cs.fsu.edu# path relative to the top of the directory tree.
747399SAli.Saidi@ARM.comsources = [File(s) for s in sources]
756019Shines@cs.fsu.edu
7610037SARM gem5 DevelopersReturn('sources')
7710037SARM gem5 Developers
7810037SARM gem5 Developers