SConscript revision 4202
15335Shines@cs.fsu.edu# -*- mode:python -*-
27897Shestness@cs.utexas.edu
34486Sbinkertn@umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
44486Sbinkertn@umich.edu# All rights reserved.
54486Sbinkertn@umich.edu#
64486Sbinkertn@umich.edu# Redistribution and use in source and binary forms, with or without
74486Sbinkertn@umich.edu# modification, are permitted provided that the following conditions are
84486Sbinkertn@umich.edu# met: redistributions of source code must retain the above copyright
94486Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer;
104486Sbinkertn@umich.edu# redistributions in binary form must reproduce the above copyright
114486Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer in the
124486Sbinkertn@umich.edu# documentation and/or other materials provided with the distribution;
134486Sbinkertn@umich.edu# neither the name of the copyright holders nor the names of its
144486Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from
154486Sbinkertn@umich.edu# this software without specific prior written permission.
164486Sbinkertn@umich.edu#
174486Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
184486Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
194486Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
204486Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
214486Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
224486Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
234486Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
244486Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254486Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
264486Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
274486Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284486Sbinkertn@umich.edu#
297897Shestness@cs.utexas.edu# Authors: Nathan Binkert
304486Sbinkertn@umich.edu
316654Snate@binkert.orgimport sys
326654Snate@binkert.org
336654Snate@binkert.orgImport('*')
343102SN/A
353102SN/Aif 'O3CPU' in env['CPU_MODELS']:
366654Snate@binkert.org    Source('base_dyn_inst.cc')
372998SN/A    Source('bpred_unit.cc')
384776Sgblack@eecs.umich.edu    Source('commit.cc')
394776Sgblack@eecs.umich.edu    Source('cpu.cc')
406654Snate@binkert.org    Source('decode.cc')
412667SN/A    Source('fetch.cc')
424776Sgblack@eecs.umich.edu    Source('free_list.cc')
434776Sgblack@eecs.umich.edu    Source('fu_pool.cc')
446654Snate@binkert.org    Source('iew.cc')
456023Snate@binkert.org    Source('inst_queue.cc')
468745Sgblack@eecs.umich.edu    Source('lsq.cc')
476654Snate@binkert.org    Source('lsq_unit.cc')
486022Sgblack@eecs.umich.edu    Source('mem_dep_unit.cc')
498745Sgblack@eecs.umich.edu    Source('rename.cc')
506654Snate@binkert.org    Source('rename_map.cc')
516022Sgblack@eecs.umich.edu    Source('rob.cc')
528745Sgblack@eecs.umich.edu    Source('scoreboard.cc')
536654Snate@binkert.org    Source('store_set.cc')
546022Sgblack@eecs.umich.edu
558745Sgblack@eecs.umich.edu    if env['TARGET_ISA'] == 'alpha':
566654Snate@binkert.org        Source('alpha/cpu.cc')
576116Snate@binkert.org        Source('alpha/cpu_builder.cc')
588745Sgblack@eecs.umich.edu        Source('alpha/dyn_inst.cc')
596691Stjones1@inf.ed.ac.uk        Source('alpha/thread_context.cc')
606691Stjones1@inf.ed.ac.uk    elif env['TARGET_ISA'] == 'mips':
618745Sgblack@eecs.umich.edu        Source('mips/cpu.cc')
624486Sbinkertn@umich.edu        Source('mips/cpu_builder.cc')
635529Snate@binkert.org        Source('mips/dyn_inst.cc')
641366SN/A        Source('mips/thread_context.cc')
651310SN/A    elif env['TARGET_ISA'] == 'sparc':
661310SN/A        Source('sparc/cpu.cc')
672901SN/A        Source('sparc/cpu_builder.cc')
685712Shsul@eecs.umich.edu        Source('sparc/dyn_inst.cc')
695529Snate@binkert.org        Source('sparc/thread_context.cc')
705529Snate@binkert.org    else:
715529Snate@binkert.org        sys.exit('O3 CPU does not support the \'%s\' ISA' % env['TARGET_ISA'])
725529Snate@binkert.org
735529Snate@binkert.org    if env['USE_CHECKER']:
745821Ssaidi@eecs.umich.edu        Source('checker_builder.cc')
753170SN/A
765780Ssteve.reinhardt@amd.comif 'O3CPU' in env['CPU_MODELS'] or 'OzoneCPU' in env['CPU_MODELS']:
775780Ssteve.reinhardt@amd.com    Source('2bit_local_pred.cc')
785780Ssteve.reinhardt@amd.com    Source('btb.cc')
795780Ssteve.reinhardt@amd.com    Source('ras.cc')
805780Ssteve.reinhardt@amd.com    Source('tournament_pred.cc')
818784Sgblack@eecs.umich.edu
828784Sgblack@eecs.umich.edu