SConscript revision 5192
12124SN/A# -*- mode:python -*-
22124SN/A
32022SN/A# Copyright (c) 2006 The Regents of The University of Michigan
42022SN/A# All rights reserved.
52022SN/A#
62022SN/A# Redistribution and use in source and binary forms, with or without
72022SN/A# modification, are permitted provided that the following conditions are
82135SN/A# met: redistributions of source code must retain the above copyright
92025SN/A# notice, this list of conditions and the following disclaimer;
102025SN/A# redistributions in binary form must reproduce the above copyright
112022SN/A# notice, this list of conditions and the following disclaimer in the
122135SN/A# documentation and/or other materials provided with the distribution;
132135SN/A# neither the name of the copyright holders nor the names of its
142135SN/A# contributors may be used to endorse or promote products derived from
152135SN/A# this software without specific prior written permission.
162135SN/A#
172026SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182026SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192025SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202026SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212061SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222026SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232026SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242686Sksewell@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252686Sksewell@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262686Sksewell@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272686Sksewell@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282686Sksewell@umich.edu#
292686Sksewell@umich.edu# Authors: Nathan Binkert
302029SN/A
312026SN/AImport('*')
322686Sksewell@umich.edu
332041SN/Aneed_simple_base = False
342029SN/Aif 'AtomicSimpleCPU' in env['CPU_MODELS']:
352041SN/A    need_simple_base = True
362239SN/A    SimObject('AtomicSimpleCPU.py')
372029SN/A    Source('atomic.cc')
382029SN/A
392029SN/Aif 'TimingSimpleCPU' in env['CPU_MODELS']:
402029SN/A    need_simple_base = True
412135SN/A    SimObject('TimingSimpleCPU.py')
422135SN/A    Source('timing.cc')
432029SN/A
442029SN/Aif 'AtomicSimpleCPU' in env['CPU_MODELS'] or \
452029SN/A       'TimingSimpleCPU' in env['CPU_MODELS']:
462029SN/A    TraceFlag('SimpleCPU')
472029SN/A
482029SN/Aif need_simple_base:
492601SN/A    Source('base.cc')
502601SN/A