SConscript revision 4781
12929Sktlim@umich.edu# -*- mode:python -*-
22929Sktlim@umich.edu
32932Sktlim@umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
42929Sktlim@umich.edu# All rights reserved.
52929Sktlim@umich.edu#
62929Sktlim@umich.edu# Redistribution and use in source and binary forms, with or without
72929Sktlim@umich.edu# modification, are permitted provided that the following conditions are
82929Sktlim@umich.edu# met: redistributions of source code must retain the above copyright
92929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer;
102929Sktlim@umich.edu# redistributions in binary form must reproduce the above copyright
112929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer in the
122929Sktlim@umich.edu# documentation and/or other materials provided with the distribution;
132929Sktlim@umich.edu# neither the name of the copyright holders nor the names of its
142929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from
152929Sktlim@umich.edu# this software without specific prior written permission.
162929Sktlim@umich.edu#
172929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202929Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282932Sktlim@umich.edu#
292932Sktlim@umich.edu# Authors: Nathan Binkert
302932Sktlim@umich.edu
312929Sktlim@umich.eduimport sys
326007Ssteve.reinhardt@amd.com
337735SAli.Saidi@ARM.comImport('*')
342929Sktlim@umich.edu
352929Sktlim@umich.eduif 'O3CPU' in env['CPU_MODELS']:
362929Sktlim@umich.edu    SimObject('FUPool.py')
372929Sktlim@umich.edu    SimObject('FuncUnitConfig.py')
382929Sktlim@umich.edu    SimObject('O3CPU.py')
392929Sktlim@umich.edu
402929Sktlim@umich.edu    Source('base_dyn_inst.cc')
418947Sandreas.hansson@arm.com    Source('bpred_unit.cc')
428947Sandreas.hansson@arm.com    Source('commit.cc')
438947Sandreas.hansson@arm.com    Source('cpu.cc')
442929Sktlim@umich.edu    Source('decode.cc')
452929Sktlim@umich.edu    Source('fetch.cc')
462929Sktlim@umich.edu    Source('free_list.cc')
472929Sktlim@umich.edu    Source('fu_pool.cc')
482929Sktlim@umich.edu    Source('iew.cc')
492929Sktlim@umich.edu    Source('inst_queue.cc')
506007Ssteve.reinhardt@amd.com    Source('lsq.cc')
516007Ssteve.reinhardt@amd.com    Source('lsq_unit.cc')
526007Ssteve.reinhardt@amd.com    Source('mem_dep_unit.cc')
536007Ssteve.reinhardt@amd.com    Source('rename.cc')
546007Ssteve.reinhardt@amd.com    Source('rename_map.cc')
556007Ssteve.reinhardt@amd.com    Source('rob.cc')
566007Ssteve.reinhardt@amd.com    Source('scoreboard.cc')
576007Ssteve.reinhardt@amd.com    Source('store_set.cc')
586007Ssteve.reinhardt@amd.com
596007Ssteve.reinhardt@amd.com    if env['TARGET_ISA'] == 'alpha':
606007Ssteve.reinhardt@amd.com        Source('alpha/cpu.cc')
616007Ssteve.reinhardt@amd.com        Source('alpha/cpu_builder.cc')
626007Ssteve.reinhardt@amd.com        Source('alpha/dyn_inst.cc')
636007Ssteve.reinhardt@amd.com        Source('alpha/thread_context.cc')
646007Ssteve.reinhardt@amd.com    elif env['TARGET_ISA'] == 'mips':
656007Ssteve.reinhardt@amd.com        Source('mips/cpu.cc')
669435SAndreas.Sandberg@ARM.com        Source('mips/cpu_builder.cc')
679435SAndreas.Sandberg@ARM.com        Source('mips/dyn_inst.cc')
689435SAndreas.Sandberg@ARM.com        Source('mips/thread_context.cc')
696007Ssteve.reinhardt@amd.com    elif env['TARGET_ISA'] == 'sparc':
706007Ssteve.reinhardt@amd.com        Source('sparc/cpu.cc')
716007Ssteve.reinhardt@amd.com        Source('sparc/cpu_builder.cc')
726007Ssteve.reinhardt@amd.com        Source('sparc/dyn_inst.cc')
736007Ssteve.reinhardt@amd.com        Source('sparc/thread_context.cc')
746007Ssteve.reinhardt@amd.com    else:
756007Ssteve.reinhardt@amd.com        sys.exit('O3 CPU does not support the \'%s\' ISA' % env['TARGET_ISA'])
766007Ssteve.reinhardt@amd.com
776007Ssteve.reinhardt@amd.com    if env['USE_CHECKER']:
786007Ssteve.reinhardt@amd.com        SimObject('O3Checker.py')
792929Sktlim@umich.edu        Source('checker_builder.cc')
802929Sktlim@umich.edu
812929Sktlim@umich.eduif 'O3CPU' in env['CPU_MODELS'] or 'OzoneCPU' in env['CPU_MODELS']:
826007Ssteve.reinhardt@amd.com    Source('2bit_local_pred.cc')
836007Ssteve.reinhardt@amd.com    Source('btb.cc')
846007Ssteve.reinhardt@amd.com    Source('ras.cc')
856007Ssteve.reinhardt@amd.com    Source('tournament_pred.cc')
866007Ssteve.reinhardt@amd.com
876007Ssteve.reinhardt@amd.com