From 8ac717a3a86fc3680cc8b360f3a94e7c9b7a7b8f Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Wed, 8 Jul 2020 16:15:23 +0100 Subject: [PATCH] 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 --- src/arch/arm/self_debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2