scons: Build the branch predictor for all CPUs
The branch predictor is normally only built when a CPU that uses a branch predictor is built. The list of CPUs is currently incomplete as the simple CPUs support branch predictors (for warming, branch stats, etc). In practice, all CPU models now use branch predictors, so this changeset removes the CPU model check and replaces it with a check for the NULL ISA.
This commit is contained in:
parent
8b8d991df0
commit
41d069ef6a
1 changed files with 12 additions and 11 deletions
|
@ -30,8 +30,9 @@
|
||||||
|
|
||||||
Import('*')
|
Import('*')
|
||||||
|
|
||||||
if 'InOrderCPU' in env['CPU_MODELS'] or 'O3CPU' in env['CPU_MODELS'] \
|
if env['TARGET_ISA'] == 'null':
|
||||||
or 'Minor' in env['CPU_MODELS']:
|
Return()
|
||||||
|
|
||||||
SimObject('BranchPredictor.py')
|
SimObject('BranchPredictor.py')
|
||||||
|
|
||||||
Source('bpred_unit.cc')
|
Source('bpred_unit.cc')
|
||||||
|
|
Loading…
Reference in a new issue