SConscript (2817:273f7fb94f83) | SConscript (2821:2e4ca11d96bd) |
---|---|
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 --- 90 unchanged lines hidden (view full) --- 99 Action(gen_cpu_exec_signatures, gen_sigs_string, 100 varlist = temp_cpu_list)) 101 102env.Depends('static_inst_exec_sigs.hh', Value(env['USE_CHECKER'])) 103env.Depends('static_inst_exec_sigs.hh', Value(env['CPU_MODELS'])) 104 105# List of suppported CPUs by the Checker. Errors out if USE_CHECKER=True 106# and one of these are not being used. | 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 --- 90 unchanged lines hidden (view full) --- 99 Action(gen_cpu_exec_signatures, gen_sigs_string, 100 varlist = temp_cpu_list)) 101 102env.Depends('static_inst_exec_sigs.hh', Value(env['USE_CHECKER'])) 103env.Depends('static_inst_exec_sigs.hh', Value(env['CPU_MODELS'])) 104 105# List of suppported CPUs by the Checker. Errors out if USE_CHECKER=True 106# and one of these are not being used. |
107CheckerSupportedCPUList = ['O3CPU', 'OzoneCPU'] | 107CheckerSupportedCPUList = ['AlphaO3CPU', 'OzoneCPU'] |
108 109################################################################# 110# 111# Include CPU-model-specific files based on set of models 112# specified in CPU_MODELS build option. 113# 114################################################################# 115 --- 9 unchanged lines hidden (view full) --- 125 sources += Split('simple/timing.cc') 126 127if need_simple_base: 128 sources += Split('simple/base.cc') 129 130if 'FastCPU' in env['CPU_MODELS']: 131 sources += Split('fast/cpu.cc') 132 | 108 109################################################################# 110# 111# Include CPU-model-specific files based on set of models 112# specified in CPU_MODELS build option. 113# 114################################################################# 115 --- 9 unchanged lines hidden (view full) --- 125 sources += Split('simple/timing.cc') 126 127if need_simple_base: 128 sources += Split('simple/base.cc') 129 130if 'FastCPU' in env['CPU_MODELS']: 131 sources += Split('fast/cpu.cc') 132 |
133if 'O3CPU' in env['CPU_MODELS']: 134 sources += SConscript('o3/SConscript', exports = 'env') | 133need_bp_unit = False 134if 'AlphaO3CPU' in env['CPU_MODELS']: 135 need_bp_unit = True |
135 sources += Split(''' | 136 sources += Split(''' |
136 o3/2bit_local_pred.cc | 137 o3/alpha_dyn_inst.cc 138 o3/alpha_cpu.cc 139 o3/alpha_cpu_builder.cc |
137 o3/base_dyn_inst.cc 138 o3/bpred_unit.cc | 140 o3/base_dyn_inst.cc 141 o3/bpred_unit.cc |
139 o3/btb.cc | |
140 o3/commit.cc 141 o3/decode.cc 142 o3/fetch.cc 143 o3/free_list.cc 144 o3/fu_pool.cc 145 o3/cpu.cc 146 o3/iew.cc 147 o3/inst_queue.cc 148 o3/lsq_unit.cc 149 o3/lsq.cc 150 o3/mem_dep_unit.cc | 142 o3/commit.cc 143 o3/decode.cc 144 o3/fetch.cc 145 o3/free_list.cc 146 o3/fu_pool.cc 147 o3/cpu.cc 148 o3/iew.cc 149 o3/inst_queue.cc 150 o3/lsq_unit.cc 151 o3/lsq.cc 152 o3/mem_dep_unit.cc |
151 o3/ras.cc | |
152 o3/rename.cc 153 o3/rename_map.cc 154 o3/rob.cc 155 o3/scoreboard.cc 156 o3/store_set.cc | 153 o3/rename.cc 154 o3/rename_map.cc 155 o3/rob.cc 156 o3/scoreboard.cc 157 o3/store_set.cc |
157 o3/tournament_pred.cc | |
158 ''') 159 if env['USE_CHECKER']: 160 sources += Split('o3/checker_builder.cc') 161 162if 'OzoneCPU' in env['CPU_MODELS']: | 158 ''') 159 if env['USE_CHECKER']: 160 sources += Split('o3/checker_builder.cc') 161 162if 'OzoneCPU' in env['CPU_MODELS']: |
163 need_bp_unit = True |
|
163 sources += Split(''' 164 ozone/base_dyn_inst.cc 165 ozone/bpred_unit.cc 166 ozone/cpu.cc 167 ozone/cpu_builder.cc 168 ozone/dyn_inst.cc 169 ozone/front_end.cc 170 ozone/lw_back_end.cc 171 ozone/lw_lsq.cc 172 ozone/rename_table.cc 173 ''') 174 if env['USE_CHECKER']: 175 sources += Split('ozone/checker_builder.cc') 176 | 164 sources += Split(''' 165 ozone/base_dyn_inst.cc 166 ozone/bpred_unit.cc 167 ozone/cpu.cc 168 ozone/cpu_builder.cc 169 ozone/dyn_inst.cc 170 ozone/front_end.cc 171 ozone/lw_back_end.cc 172 ozone/lw_lsq.cc 173 ozone/rename_table.cc 174 ''') 175 if env['USE_CHECKER']: 176 sources += Split('ozone/checker_builder.cc') 177 |
178if need_bp_unit: 179 sources += Split(''' 180 o3/2bit_local_pred.cc 181 o3/btb.cc 182 o3/ras.cc 183 o3/tournament_pred.cc 184 ''') 185 |
|
177if env['USE_CHECKER']: 178 sources += Split('checker/cpu.cc') 179 checker_supports = False 180 for i in CheckerSupportedCPUList: 181 if i in env['CPU_MODELS']: 182 checker_supports = True 183 if not checker_supports: 184 print "Checker only supports CPU models %s, please " \ --- 14 unchanged lines hidden --- | 186if env['USE_CHECKER']: 187 sources += Split('checker/cpu.cc') 188 checker_supports = False 189 for i in CheckerSupportedCPUList: 190 if i in env['CPU_MODELS']: 191 checker_supports = True 192 if not checker_supports: 193 print "Checker only supports CPU models %s, please " \ --- 14 unchanged lines hidden --- |