SConscript revision 9397
12567SN/A# -*- mode:python -*-
211574SCurtis.Dunham@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 sys
322567SN/A
332567SN/AImport('*')
342567SN/A
352567SN/Aif 'O3CPU' in env['CPU_MODELS'] or 'OzoneCPU' in env['CPU_MODELS']:
362567SN/A    DebugFlag('CommitRate')
372567SN/A    DebugFlag('IEW')
382567SN/A    DebugFlag('IQ')
392665SN/A
402665SN/Aif 'O3CPU' in env['CPU_MODELS']:
412567SN/A    SimObject('FUPool.py')
422567SN/A    SimObject('FuncUnitConfig.py')
436757SAli.Saidi@ARM.com    SimObject('O3CPU.py')
446757SAli.Saidi@ARM.com
452567SN/A    Source('base_dyn_inst.cc')
4611234Sandreas.sandberg@arm.com    Source('bpred_unit.cc')
472567SN/A    Source('commit.cc')
482567SN/A    Source('cpu.cc')
492567SN/A    Source('deriv.cc')
508229Snate@binkert.org    Source('decode.cc')
516757SAli.Saidi@ARM.com    Source('dyn_inst.cc')
5210810Sbr@bsdpad.com    Source('fetch.cc')
532567SN/A    Source('free_list.cc')
542567SN/A    Source('fu_pool.cc')
552567SN/A    Source('iew.cc')
5610844Sandreas.sandberg@arm.com    Source('inst_queue.cc')
5710037SARM gem5 Developers    Source('lsq.cc')
5810037SARM gem5 Developers    Source('lsq_unit.cc')
596757SAli.Saidi@ARM.com    Source('mem_dep_unit.cc')
602567SN/A    Source('rename.cc')
618285SPrakash.Ramrakhyani@arm.com    Source('rename_map.cc')
627650SAli.Saidi@ARM.com    Source('rob.cc')
637650SAli.Saidi@ARM.com    Source('scoreboard.cc')
647650SAli.Saidi@ARM.com    Source('store_set.cc')
657650SAli.Saidi@ARM.com    Source('thread_context.cc')
667650SAli.Saidi@ARM.com
677650SAli.Saidi@ARM.com    DebugFlag('LSQ')
6811234Sandreas.sandberg@arm.com    DebugFlag('LSQUnit')
6911234Sandreas.sandberg@arm.com    DebugFlag('MemDepUnit')
7011234Sandreas.sandberg@arm.com    DebugFlag('O3CPU')
718286SAli.Saidi@ARM.com    DebugFlag('ROB')
728286SAli.Saidi@ARM.com    DebugFlag('Rename')
738286SAli.Saidi@ARM.com    DebugFlag('Scoreboard')
748286SAli.Saidi@ARM.com    DebugFlag('StoreSet')
758286SAli.Saidi@ARM.com    DebugFlag('Writeback')
7610037SARM gem5 Developers
7710037SARM gem5 Developers    CompoundFlag('O3CPUAll', [ 'Fetch', 'Decode', 'Rename', 'IEW', 'Commit',
7810037SARM gem5 Developers        'IQ', 'ROB', 'FreeList', 'LSQ', 'LSQUnit', 'StoreSet', 'MemDepUnit',
7910037SARM gem5 Developers        'DynInst', 'O3CPU', 'Activity', 'Scoreboard', 'Writeback' ])
8010037SARM gem5 Developers
8110037SARM gem5 Developers    SimObject('O3Checker.py')
8210037SARM gem5 Developers    Source('checker.cc')
8310037SARM gem5 Developers