From f55510c303cfae7d25c2169fac7a254b4a66bc74 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 25 Jun 2020 10:18:40 +0100 Subject: [PATCH] arch-arm: Fix arm switcheroo regressions These were failing with the combination of: https://gem5-review.googlesource.com/c/public/gem5/+/29233 with https://gem5-review.googlesource.com/c/public/gem5/+/27967 Change-Id: I8d3c3701faf4828e76aaa2cb895b9589f057d370 Signed-off-by: Giacomo Travaglini Reviewed-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30616 Reviewed-by: Jason Lowe-Power Tested-by: kokoro --- src/arch/arm/isa.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arch/arm/isa.cc b/src/arch/arm/isa.cc index f88d2ef07..a48b3495f 100644 --- a/src/arch/arm/isa.cc +++ b/src/arch/arm/isa.cc @@ -428,7 +428,6 @@ ISA::startup() setupThreadContext(); afterStartup = true; - selfDebug->init(tc); } void @@ -439,6 +438,8 @@ ISA::setupThreadContext() if (!system) return; + selfDebug->init(tc); + Gicv3 *gicv3 = dynamic_cast(system->getGIC()); if (!gicv3) return; -- 2.30.2