arch-arm: Fix pmc == on SelfDebug
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 8 Jul 2020 15:15:23 +0000 (16:15 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 13 Jul 2020 13:56:41 +0000 (13:56 +0000)
The Assignment operator was used instead of the Equal-To

Change-Id: Ibf5a0006bce79b67d662fd1f8942699582956d58
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31080
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/self_debug.cc

index 96c78226cca6f17560ab0106ee4e42a6fe6aacd1..c964b113f205701d60ac6d0a44a5e2c329dfb4dd 100644 (file)
@@ -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;