SConscript revision 7768
11388SN/A# -*- mode:python -*-
211359Sandreas@sandberg.pp.se
311359Sandreas@sandberg.pp.se# Copyright (c) 2006 The Regents of The University of Michigan
411359Sandreas@sandberg.pp.se# All rights reserved.
511359Sandreas@sandberg.pp.se#
611359Sandreas@sandberg.pp.se# Redistribution and use in source and binary forms, with or without
711359Sandreas@sandberg.pp.se# modification, are permitted provided that the following conditions are
811359Sandreas@sandberg.pp.se# met: redistributions of source code must retain the above copyright
911359Sandreas@sandberg.pp.se# notice, this list of conditions and the following disclaimer;
1011359Sandreas@sandberg.pp.se# redistributions in binary form must reproduce the above copyright
1111359Sandreas@sandberg.pp.se# notice, this list of conditions and the following disclaimer in the
1211359Sandreas@sandberg.pp.se# documentation and/or other materials provided with the distribution;
1311359Sandreas@sandberg.pp.se# neither the name of the copyright holders nor the names of its
1411359Sandreas@sandberg.pp.se# contributors may be used to endorse or promote products derived from
151388SN/A# this software without specific prior written permission.
161388SN/A#
171388SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
181388SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
191388SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
201388SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
211388SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
221388SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
231388SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
241388SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
251388SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
261388SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
271388SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
281388SN/A#
291388SN/A# Authors: Nathan Binkert
301388SN/A
311388SN/AImport('*')
321388SN/A
331388SN/Aneed_simple_base = False
341388SN/Aif 'AtomicSimpleCPU' in env['CPU_MODELS']:
351388SN/A    need_simple_base = True
361388SN/A    SimObject('AtomicSimpleCPU.py')
371388SN/A    Source('atomic.cc')
381388SN/A
391388SN/Aif 'TimingSimpleCPU' in env['CPU_MODELS']:
402665Ssaidi@eecs.umich.edu    need_simple_base = True
412665Ssaidi@eecs.umich.edu    SimObject('TimingSimpleCPU.py')
428634Schris.emmons@arm.com    Source('timing.cc')
4311359Sandreas@sandberg.pp.se
4411359Sandreas@sandberg.pp.seif 'AtomicSimpleCPU' in env['CPU_MODELS'] or \
451388SN/A       'TimingSimpleCPU' in env['CPU_MODELS']:
461388SN/A    TraceFlag('SimpleCPU')
471388SN/A
481388SN/Aif need_simple_base:
491388SN/A    Source('base.cc')
505749Scws3k@cs.virginia.edu    SimObject('BaseSimpleCPU.py')
511388SN/A