SConscript revision 4497
12139SN/A# -*- mode:python -*- 22139SN/A 32139SN/A# Copyright (c) 2006 The Regents of The University of Michigan 42139SN/A# All rights reserved. 52139SN/A# 62139SN/A# Redistribution and use in source and binary forms, with or without 72139SN/A# modification, are permitted provided that the following conditions are 82139SN/A# met: redistributions of source code must retain the above copyright 92139SN/A# notice, this list of conditions and the following disclaimer; 102139SN/A# redistributions in binary form must reproduce the above copyright 112139SN/A# notice, this list of conditions and the following disclaimer in the 122139SN/A# documentation and/or other materials provided with the distribution; 132139SN/A# neither the name of the copyright holders nor the names of its 142139SN/A# contributors may be used to endorse or promote products derived from 152139SN/A# this software without specific prior written permission. 162139SN/A# 172139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192139SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222139SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232139SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Nathan Binkert 302139SN/A 314202Sbinkertn@umich.eduimport sys 322139SN/A 334202Sbinkertn@umich.eduImport('*') 342152SN/A 352152SN/Aif 'O3CPU' in env['CPU_MODELS']: 362139SN/A SimObject('FUPool.py') 372139SN/A SimObject('FuncUnitConfig.py') 382139SN/A SimObject('O3CPU.py') 392139SN/A 402139SN/A Source('base_dyn_inst.cc') 412152SN/A Source('bpred_unit.cc') 422152SN/A Source('commit.cc') 432139SN/A Source('cpu.cc') 442139SN/A Source('decode.cc') 452139SN/A Source('fetch.cc') 464781Snate@binkert.org Source('free_list.cc') 474781Snate@binkert.org Source('fu_pool.cc') 486313Sgblack@eecs.umich.edu Source('iew.cc') 494781Snate@binkert.org Source('inst_queue.cc') 504781Snate@binkert.org Source('lsq.cc') 513170Sstever@eecs.umich.edu Source('lsq_unit.cc') 525664Sgblack@eecs.umich.edu Source('mem_dep_unit.cc') 533806Ssaidi@eecs.umich.edu Source('rename.cc') 546179Sksewell@umich.edu Source('rename_map.cc') 554781Snate@binkert.org Source('rob.cc') 564781Snate@binkert.org Source('scoreboard.cc') 576329Sgblack@eecs.umich.edu Source('store_set.cc') 584781Snate@binkert.org 594781Snate@binkert.org if env['TARGET_ISA'] == 'alpha': 604781Snate@binkert.org Source('alpha/cpu.cc') 614781Snate@binkert.org Source('alpha/cpu_builder.cc') 624781Snate@binkert.org Source('alpha/dyn_inst.cc') 634781Snate@binkert.org Source('alpha/thread_context.cc') 642139SN/A elif env['TARGET_ISA'] == 'mips': 652139SN/A Source('mips/cpu.cc') 663546Sgblack@eecs.umich.edu Source('mips/cpu_builder.cc') 674202Sbinkertn@umich.edu Source('mips/dyn_inst.cc') 682152SN/A Source('mips/thread_context.cc') 692152SN/A elif env['TARGET_ISA'] == 'sparc': 702152SN/A Source('sparc/cpu.cc') 712152SN/A Source('sparc/cpu_builder.cc') 722152SN/A Source('sparc/dyn_inst.cc') 732152SN/A Source('sparc/thread_context.cc') 742152SN/A else: 752152SN/A sys.exit('O3 CPU does not support the \'%s\' ISA' % env['TARGET_ISA']) 762152SN/A 772152SN/A if env['USE_CHECKER']: 782152SN/A SimObject('O3Checker.py') 792152SN/A Source('checker_builder.cc') 802504SN/A 812504SN/Aif 'O3CPU' in env['CPU_MODELS'] or 'OzoneCPU' in env['CPU_MODELS']: 822504SN/A Source('2bit_local_pred.cc') 832504SN/A Source('btb.cc') 842152SN/A Source('ras.cc') 852504SN/A Source('tournament_pred.cc') 862152SN/A 872152SN/A