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
@@ -65,7 +65,6 @@ from common import CacheConfig
|
||||
from common import CpuConfig
|
||||
from common import MemConfig
|
||||
from common import ObjectList
|
||||
from common import BPConfig
|
||||
from common.Caches import *
|
||||
from common import Options
|
||||
|
||||
@@ -206,11 +205,11 @@ def build_test_system(np):
|
||||
if options.checker:
|
||||
test_sys.cpu[i].addCheckerCpu()
|
||||
if options.bp_type:
|
||||
bpClass = BPConfig.get(options.bp_type)
|
||||
bpClass = ObjectList.bp_list.get(options.bp_type)
|
||||
test_sys.cpu[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)
|
||||
test_sys.cpu[i].branchPred.indirectBranchPred = \
|
||||
IndirectBPClass()
|
||||
test_sys.cpu[i].createThreads()
|
||||
|
||||
Reference in New Issue
Block a user