From daf0cbb1343428eeea7dcdaa377d8e08adfec8b5 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 1 Sep 2022 10:20:48 +0100 Subject: [PATCH] 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 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/62915 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- configs/common/Simulation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index e558055f16..731b3fcaa5 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -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)]