arch-arm: Fix minor bug PAUTH comparision with 0
authorJordi Vaquero <jordi.vaquero@metempsy.com>
Sat, 20 Jun 2020 12:58:39 +0000 (14:58 +0200)
committerJordi Vaquero <jordi.vaquero@metempsy.com>
Fri, 26 Jun 2020 07:01:17 +0000 (07:01 +0000)
Change-Id: I887e5fa256a8c9cc24f7b9ef1fc0353dea555e82
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30615
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>

src/arch/arm/pauth_helpers.cc

index 1c83d77b8c2bda0a8a053f013a62dea3aa5cd4aa..c88795f0f856120c1db358cdf99b42ce5d6575a2 100644 (file)
@@ -706,7 +706,7 @@ ArmISA::addPACGA(ThreadContext * tc, uint64_t X, uint64_t Y, uint64_t* out)
     {
         case EL0:
             trapEL2 = (EL2Enabled(tc) && hcr.api == 0 &&
-                      (hcr.tge == '0' || hcr.e2h == 0));
+                      (hcr.tge == 0 || hcr.e2h == 0));
             trapEL3 = have_el3 && sc3.api == 0;
             break;
         case EL1: