From: Jordi Vaquero Date: Sat, 20 Jun 2020 12:58:39 +0000 (+0200) Subject: arch-arm: Fix minor bug PAUTH comparision with 0 X-Git-Tag: v20.1.0.0~527 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acb771be9109966f39035242de030a2027376208;p=gem5.git 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 --- 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: