From acb771be9109966f39035242de030a2027376208 Mon Sep 17 00:00:00 2001 From: Jordi Vaquero Date: Sat, 20 Jun 2020 14:58:39 +0200 Subject: [PATCH] arch-arm: Fix minor bug PAUTH comparision with 0 Change-Id: I887e5fa256a8c9cc24f7b9ef1fc0353dea555e82 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30615 Tested-by: kokoro Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini --- src/arch/arm/pauth_helpers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/arm/pauth_helpers.cc b/src/arch/arm/pauth_helpers.cc index 1c83d77b8..c88795f0f 100644 --- a/src/arch/arm/pauth_helpers.cc +++ b/src/arch/arm/pauth_helpers.cc @@ -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: -- 2.30.2