configs: Fix segfault when using --standard-switch and --repeat-switch
This is similar to: https://gem5-review.googlesource.com/c/public/gem5/+/56812 We should really prune some of these options and take stronger steps on discouraging se.py usage Change-Id: Id750fb5731698a17d64ed60e65e1253c620c911e Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/62915 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -571,6 +571,8 @@ def run(options, root, testsys, cpu_class):
|
||||
if options.checker:
|
||||
repeat_switch_cpus[i].addCheckerCpu()
|
||||
|
||||
repeat_switch_cpus[i].createThreads()
|
||||
|
||||
testsys.repeat_switch_cpus = repeat_switch_cpus
|
||||
|
||||
if cpu_class:
|
||||
@@ -630,6 +632,9 @@ def run(options, root, testsys, cpu_class):
|
||||
switch_cpus[i].addCheckerCpu()
|
||||
switch_cpus_1[i].addCheckerCpu()
|
||||
|
||||
switch_cpus[i].createThreads()
|
||||
switch_cpus_1[i].createThreads()
|
||||
|
||||
testsys.switch_cpus = switch_cpus
|
||||
testsys.switch_cpus_1 = switch_cpus_1
|
||||
switch_cpu_list = [(testsys.cpu[i], switch_cpus[i]) for i in range(np)]
|
||||
|
||||
Reference in New Issue
Block a user