From: Giacomo Travaglini Date: Wed, 8 Jul 2020 15:15:23 +0000 (+0100) Subject: arch-arm: Fix pmc == on SelfDebug X-Git-Tag: v20.1.0.0~478 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ac717a3a86fc3680cc8b360f3a94e7c9b7a7b8f;p=gem5.git arch-arm: Fix pmc == on SelfDebug The Assignment operator was used instead of the Equal-To Change-Id: Ibf5a0006bce79b67d662fd1f8942699582956d58 Signed-off-by: Giacomo Travaglini Reviewed-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31080 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg Tested-by: kokoro --- diff --git a/src/arch/arm/self_debug.cc b/src/arch/arm/self_debug.cc index 96c78226c..c964b113f 100644 --- a/src/arch/arm/self_debug.cc +++ b/src/arch/arm/self_debug.cc @@ -429,7 +429,7 @@ BrkPoint::isEnabled(ThreadContext* tc, ExceptionLevel el, break; case EL2: v = (ssc == 0x3) || - ((hmc == 0x1) && !((ssc==0x2) && (pmc = 0x0))); + ((hmc == 0x1) && !((ssc==0x2) && (pmc == 0x0))); if (v && pmc == 0x2) panic("Unexpected EL in SelfDebug::isDebugEnabled.\n"); break;