SConscript revision 7722
12292SN/A# -*- mode:python -*-
22329SN/A
32292SN/A# Copyright (c) 2006 The Regents of The University of Michigan
42292SN/A# All rights reserved.
52292SN/A#
62292SN/A# Redistribution and use in source and binary forms, with or without
72292SN/A# modification, are permitted provided that the following conditions are
82292SN/A# met: redistributions of source code must retain the above copyright
92292SN/A# notice, this list of conditions and the following disclaimer;
102292SN/A# redistributions in binary form must reproduce the above copyright
112292SN/A# notice, this list of conditions and the following disclaimer in the
122292SN/A# documentation and/or other materials provided with the distribution;
132292SN/A# neither the name of the copyright holders nor the names of its
142292SN/A# contributors may be used to endorse or promote products derived from
152292SN/A# this software without specific prior written permission.
162292SN/A#
172292SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182292SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192292SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202292SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212292SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222292SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232292SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242292SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252292SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262292SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272689Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282689Sktlim@umich.edu#
292689Sktlim@umich.edu# Authors: Nathan Binkert
302292SN/A
312292SN/Aimport sys
322292SN/A
332292SN/AImport('*')
342292SN/A
352329SN/Aif 'O3CPU' in env['CPU_MODELS'] or 'OzoneCPU' in env['CPU_MODELS']:
362292SN/A    TraceFlag('CommitRate')
372292SN/A    TraceFlag('IEW')
382292SN/A    TraceFlag('IQ')
392329SN/A
402292SN/Aif 'O3CPU' in env['CPU_MODELS']:
412292SN/A    SimObject('FUPool.py')
422292SN/A    SimObject('FuncUnitConfig.py')
432808Ssaidi@eecs.umich.edu    SimObject('O3CPU.py')
442669Sktlim@umich.edu
452292SN/A    Source('base_dyn_inst.cc')
462292SN/A    Source('bpred_unit.cc')
472329SN/A    Source('commit.cc')
482329SN/A    Source('cpu.cc')
492329SN/A    Source('cpu_builder.cc')
502329SN/A    Source('decode.cc')
512329SN/A    Source('dyn_inst.cc')
522329SN/A    Source('fetch.cc')
532329SN/A    Source('free_list.cc')
542329SN/A    Source('fu_pool.cc')
552329SN/A    Source('iew.cc')
562329SN/A    Source('inst_queue.cc')
572292SN/A    Source('lsq.cc')
582292SN/A    Source('lsq_unit.cc')
592292SN/A    Source('mem_dep_unit.cc')
602292SN/A    Source('rename.cc')
612292SN/A    Source('rename_map.cc')
622292SN/A    Source('rob.cc')
632292SN/A    Source('scoreboard.cc')
642733Sktlim@umich.edu    Source('store_set.cc')
652292SN/A    Source('thread_context.cc')
662292SN/A
672292SN/A    TraceFlag('LSQ')
682292SN/A    TraceFlag('LSQUnit')
692292SN/A    TraceFlag('MemDepUnit')
702292SN/A    TraceFlag('O3CPU')
712292SN/A    TraceFlag('ROB')
722292SN/A    TraceFlag('Rename')
732292SN/A    TraceFlag('Scoreboard')
742292SN/A    TraceFlag('StoreSet')
752292SN/A    TraceFlag('Writeback')
762292SN/A
772292SN/A    CompoundFlag('O3CPUAll', [ 'Fetch', 'Decode', 'Rename', 'IEW', 'Commit',
782292SN/A        'IQ', 'ROB', 'FreeList', 'LSQ', 'LSQUnit', 'StoreSet', 'MemDepUnit',
792292SN/A        'DynInst', 'O3CPU', 'Activity', 'Scoreboard', 'Writeback' ])
802727Sktlim@umich.edu
812727Sktlim@umich.edu    if env['USE_CHECKER']:
822727Sktlim@umich.edu        SimObject('O3Checker.py')
832292SN/A        Source('checker_builder.cc')
842733Sktlim@umich.edu