config: add an option to list and select indirect branch predictor
Change-Id: I9a855d36de7d95b7785ff8a897899037cea6a3d8 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/15320 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -206,6 +206,11 @@ def build_test_system(np):
|
||||
if options.bp_type:
|
||||
bpClass = BPConfig.get(options.bp_type)
|
||||
test_sys.cpu[i].branchPred = bpClass()
|
||||
if options.indirect_bp_type:
|
||||
IndirectBPClass = \
|
||||
BPConfig.get_indirect(options.indirect_bp_type)
|
||||
test_sys.cpu[i].branchPred.indirectBranchPred = \
|
||||
IndirectBPClass()
|
||||
test_sys.cpu[i].createThreads()
|
||||
|
||||
# If elastic tracing is enabled when not restoring from checkpoint and
|
||||
|
||||
Reference in New Issue
Block a user