SConscript revision 9341
12567SN/A# -*- mode:python -*- 27650SAli.Saidi@ARM.com 37650SAli.Saidi@ARM.com# Copyright (c) 2006 The Regents of The University of Michigan 47650SAli.Saidi@ARM.com# All rights reserved. 57650SAli.Saidi@ARM.com# 67650SAli.Saidi@ARM.com# Redistribution and use in source and binary forms, with or without 77650SAli.Saidi@ARM.com# modification, are permitted provided that the following conditions are 87650SAli.Saidi@ARM.com# met: redistributions of source code must retain the above copyright 97650SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer; 107650SAli.Saidi@ARM.com# redistributions in binary form must reproduce the above copyright 117650SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the 127650SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution; 137650SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its 142567SN/A# contributors may be used to endorse or promote products derived from 152567SN/A# this software without specific prior written permission. 162567SN/A# 172567SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182567SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192567SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202567SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212567SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222567SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232567SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242567SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252567SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262567SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272567SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282567SN/A# 292567SN/A# Authors: Nathan Binkert 302567SN/A 312567SN/AImport('*') 322567SN/A 332567SN/Aneed_simple_base = False 342567SN/Aif 'AtomicSimpleCPU' in env['CPU_MODELS']: 352567SN/A need_simple_base = True 362567SN/A SimObject('AtomicSimpleCPU.py') 372567SN/A Source('atomic.cc') 382567SN/A 392665SN/Aif 'TimingSimpleCPU' in env['CPU_MODELS']: 402665SN/A need_simple_base = True 412567SN/A SimObject('TimingSimpleCPU.py') 422567SN/A Source('timing.cc') 436757SAli.Saidi@ARM.com 446757SAli.Saidi@ARM.comif 'AtomicSimpleCPU' in env['CPU_MODELS'] or \ 452567SN/A 'TimingSimpleCPU' in env['CPU_MODELS']: 462567SN/A DebugFlag('SimpleCPU') 472567SN/A 482567SN/Aif need_simple_base: 498229Snate@binkert.org Source('base.cc') 506757SAli.Saidi@ARM.com SimObject('BaseSimpleCPU.py') 512567SN/A