diff options
Diffstat (limited to 'configs/common/Simulation.py')
-rw-r--r-- | configs/common/Simulation.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index 23a778397..19bd962e8 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -46,6 +46,7 @@ from os import getcwd from os.path import join as joinpath from common import CpuConfig +from common import BPConfig from common import MemConfig import m5 @@ -478,6 +479,9 @@ def run(options, root, testsys, cpu_class): # Add checker cpu if selected if options.checker: switch_cpus[i].addCheckerCpu() + if options.bp_type: + bpClass = BPConfig.get(options.bp_type) + switch_cpus[i].branchPred = bpClass() # If elastic tracing is enabled attach the elastic trace probe # to the switch CPUs |