configs: Port BPConfig to use the common object list
Port BPConfig to use the common object list. Change-Id: I5cbd1c67cf743778bc59b5aa3c3dea5ab397b66d Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20590 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
c957d00dfe
commit
e8a318476e
@@ -48,7 +48,6 @@ from os.path import join as joinpath
|
||||
|
||||
from common import CpuConfig
|
||||
from . import ObjectList
|
||||
from . import BPConfig
|
||||
from . import MemConfig
|
||||
|
||||
import m5
|
||||
@@ -482,11 +481,11 @@ def run(options, root, testsys, cpu_class):
|
||||
if options.checker:
|
||||
switch_cpus[i].addCheckerCpu()
|
||||
if options.bp_type:
|
||||
bpClass = BPConfig.get(options.bp_type)
|
||||
bpClass = ObjectList.bp_list.get(options.bp_type)
|
||||
switch_cpus[i].branchPred = bpClass()
|
||||
if options.indirect_bp_type:
|
||||
IndirectBPClass = \
|
||||
BPConfig.get_indirect(options.indirect_bp_type)
|
||||
IndirectBPClass = ObjectList.indirect_bp_list.get(
|
||||
options.indirect_bp_type)
|
||||
switch_cpus[i].branchPred.indirectBranchPred = \
|
||||
IndirectBPClass()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user