SConscript (2761:55b821162cd2) SConscript (2765:2962455d1c0a)
1# -*- mode:python -*-
2
3# Copyright (c) 2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 108 unchanged lines hidden (view full) ---

117if need_simple_base:
118 sources += Split('simple/base.cc')
119
120if 'FastCPU' in env['CPU_MODELS']:
121 sources += Split('fast/cpu.cc')
122
123if 'AlphaO3CPU' in env['CPU_MODELS']:
124 sources += Split('''
1# -*- mode:python -*-
2
3# Copyright (c) 2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 108 unchanged lines hidden (view full) ---

117if need_simple_base:
118 sources += Split('simple/base.cc')
119
120if 'FastCPU' in env['CPU_MODELS']:
121 sources += Split('fast/cpu.cc')
122
123if 'AlphaO3CPU' in env['CPU_MODELS']:
124 sources += Split('''
125 base_dyn_inst.cc
126 o3/2bit_local_pred.cc
127 o3/alpha_dyn_inst.cc
128 o3/alpha_cpu.cc
129 o3/alpha_cpu_builder.cc
125 o3/2bit_local_pred.cc
126 o3/alpha_dyn_inst.cc
127 o3/alpha_cpu.cc
128 o3/alpha_cpu_builder.cc
129 o3/base_dyn_inst.cc
130 o3/bpred_unit.cc
131 o3/btb.cc
132 o3/commit.cc
133 o3/decode.cc
134 o3/fetch.cc
135 o3/free_list.cc
136 o3/fu_pool.cc
137 o3/cpu.cc

--- 6 unchanged lines hidden (view full) ---

144 o3/rename.cc
145 o3/rename_map.cc
146 o3/rob.cc
147 o3/scoreboard.cc
148 o3/store_set.cc
149 o3/tournament_pred.cc
150 ''')
151 if 'CheckerCPU' in env['CPU_MODELS']:
130 o3/bpred_unit.cc
131 o3/btb.cc
132 o3/commit.cc
133 o3/decode.cc
134 o3/fetch.cc
135 o3/free_list.cc
136 o3/fu_pool.cc
137 o3/cpu.cc

--- 6 unchanged lines hidden (view full) ---

144 o3/rename.cc
145 o3/rename_map.cc
146 o3/rob.cc
147 o3/scoreboard.cc
148 o3/store_set.cc
149 o3/tournament_pred.cc
150 ''')
151 if 'CheckerCPU' in env['CPU_MODELS']:
152 sources += Split('checker/o3_builder.cc')
152 sources += Split('o3/checker_builder.cc')
153
154if 'OzoneSimpleCPU' in env['CPU_MODELS']:
155 sources += Split('''
156 ozone/cpu.cc
157 ozone/cpu_builder.cc
158 ozone/dyn_inst.cc
159 ozone/front_end.cc
160 ozone/inorder_back_end.cc
161 ozone/inst_queue.cc
162 ozone/rename_table.cc
163 ''')
153
154if 'OzoneSimpleCPU' in env['CPU_MODELS']:
155 sources += Split('''
156 ozone/cpu.cc
157 ozone/cpu_builder.cc
158 ozone/dyn_inst.cc
159 ozone/front_end.cc
160 ozone/inorder_back_end.cc
161 ozone/inst_queue.cc
162 ozone/rename_table.cc
163 ''')
164 if 'CheckerCPU' in env['CPU_MODELS']:
165 sources += Split('checker/ozone_builder.cc')
166
167if 'OzoneCPU' in env['CPU_MODELS']:
168 sources += Split('''
164
165if 'OzoneCPU' in env['CPU_MODELS']:
166 sources += Split('''
167 ozone/base_dyn_inst.cc
168 ozone/bpred_unit.cc
169 ozone/lsq_unit.cc
170 ozone/lw_back_end.cc
171 ozone/lw_lsq.cc
172 ''')
169 ozone/lsq_unit.cc
170 ozone/lw_back_end.cc
171 ozone/lw_lsq.cc
172 ''')
173 if 'CheckerCPU' in env['CPU_MODELS']:
174 sources += Split('ozone/checker_builder.cc')
173
174if 'CheckerCPU' in env['CPU_MODELS']:
175
176if 'CheckerCPU' in env['CPU_MODELS']:
175 sources += Split('checker/cpu.cc')
176 checker_supports = False
177 for i in CheckerSupportedCPUList:
178 if i in env['CPU_MODELS']:
179 checker_supports = True
180 if not checker_supports:
181 print "Checker only supports CPU models %s, please " \
182 "set USE_CHECKER=False or use one of those CPU models" \
183 % CheckerSupportedCPUList
184 Exit(1)
185
186
177 checker_supports = False
178 for i in CheckerSupportedCPUList:
179 if i in env['CPU_MODELS']:
180 checker_supports = True
181 if not checker_supports:
182 print "Checker only supports CPU models %s, please " \
183 "set USE_CHECKER=False or use one of those CPU models" \
184 % CheckerSupportedCPUList
185 Exit(1)
186
187
187# FullCPU sources are included from src/SConscript since they're not
188# FullCPU sources are included from m5/SConscript since they're not
188# below this point in the file hierarchy.
189
190# Convert file names to SCons File objects. This takes care of the
191# path relative to the top of the directory tree.
192sources = [File(s) for s in sources]
193
194Return('sources')
195
189# below this point in the file hierarchy.
190
191# Convert file names to SCons File objects. This takes care of the
192# path relative to the top of the directory tree.
193sources = [File(s) for s in sources]
194
195Return('sources')
196