SConscript revision 5742
12SN/A# -*- mode:python -*-
28733Sgeoffrey.blake@arm.com
37338SAli.Saidi@ARM.com# Copyright (c) 2006 The Regents of The University of Michigan
47338SAli.Saidi@ARM.com# All rights reserved.
57338SAli.Saidi@ARM.com#
67338SAli.Saidi@ARM.com# Redistribution and use in source and binary forms, with or without
77338SAli.Saidi@ARM.com# modification, are permitted provided that the following conditions are
87338SAli.Saidi@ARM.com# met: redistributions of source code must retain the above copyright
97338SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer;
107338SAli.Saidi@ARM.com# redistributions in binary form must reproduce the above copyright
117338SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the
127338SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution;
137338SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its
141762SN/A# contributors may be used to endorse or promote products derived from
152SN/A# this software without specific prior written permission.
162SN/A#
172SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282SN/A#
292SN/A# Authors: Nathan Binkert
302SN/A
312SN/Aimport sys
322SN/A
332SN/AImport('*')
342SN/A
352SN/Aif 'O3CPU' in env['CPU_MODELS'] or 'OzoneCPU' in env['CPU_MODELS']:
362SN/A    Source('2bit_local_pred.cc')
372SN/A    Source('btb.cc')
382SN/A    Source('ras.cc')
392665Ssaidi@eecs.umich.edu    Source('tournament_pred.cc')
402665Ssaidi@eecs.umich.edu
412SN/A    TraceFlag('CommitRate')
422SN/A    TraceFlag('IEW')
438779Sgblack@eecs.umich.edu    TraceFlag('IQ')
448779Sgblack@eecs.umich.edu
458779Sgblack@eecs.umich.eduif 'O3CPU' in env['CPU_MODELS']:
462439SN/A    SimObject('FUPool.py')
478779Sgblack@eecs.umich.edu    SimObject('FuncUnitConfig.py')
488229Snate@binkert.org    SimObject('O3CPU.py')
496216Snate@binkert.org
50146SN/A    Source('base_dyn_inst.cc')
51146SN/A    Source('bpred_unit.cc')
52146SN/A    Source('commit.cc')
53146SN/A    Source('cpu.cc')
54146SN/A    Source('cpu_builder.cc')
556216Snate@binkert.org    Source('decode.cc')
566658Snate@binkert.org    Source('dyn_inst.cc')
578229Snate@binkert.org    Source('fetch.cc')
581717SN/A    Source('free_list.cc')
598887Sgeoffrey.blake@arm.com    Source('fu_pool.cc')
608887Sgeoffrey.blake@arm.com    Source('iew.cc')
61146SN/A    Source('inst_queue.cc')
621977SN/A    Source('lsq.cc')
632683Sktlim@umich.edu    Source('lsq_unit.cc')
641717SN/A    Source('mem_dep_unit.cc')
65146SN/A    Source('rename.cc')
662683Sktlim@umich.edu    Source('rename_map.cc')
678232Snate@binkert.org    Source('rob.cc')
688232Snate@binkert.org    Source('scoreboard.cc')
698232Snate@binkert.org    Source('store_set.cc')
708779Sgblack@eecs.umich.edu    Source('thread_context.cc')
713348Sbinkertn@umich.edu
726105Ssteve.reinhardt@amd.com    TraceFlag('FreeList')
736216Snate@binkert.org    TraceFlag('LSQ')
742036SN/A    TraceFlag('LSQUnit')
75146SN/A    TraceFlag('MemDepUnit')
768817Sgblack@eecs.umich.edu    TraceFlag('O3CPU')
778793Sgblack@eecs.umich.edu    TraceFlag('ROB')
7856SN/A    TraceFlag('Rename')
7956SN/A    TraceFlag('Scoreboard')
80695SN/A    TraceFlag('StoreSet')
812901Ssaidi@eecs.umich.edu    TraceFlag('Writeback')
822SN/A
832SN/A    CompoundFlag('O3CPUAll', [ 'Fetch', 'Decode', 'Rename', 'IEW', 'Commit',
842449SN/A        'IQ', 'ROB', 'FreeList', 'LSQ', 'LSQUnit', 'StoreSet', 'MemDepUnit',
851355SN/A        'DynInst', 'O3CPU', 'Activity', 'Scoreboard', 'Writeback' ])
865529Snate@binkert.org
879023Sgblack@eecs.umich.edu    if env['USE_CHECKER']:
88224SN/A        SimObject('O3Checker.py')
898793Sgblack@eecs.umich.edu        Source('checker_builder.cc')
908793Sgblack@eecs.umich.edu