arch-arm: Introduce HavePACExt helper
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 25 Aug 2020 11:15:17 +0000 (12:15 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 28 Aug 2020 09:40:21 +0000 (09:40 +0000)
commit6d15745532df2dd306ecc15bd0e9f79914be1682
tree9f811c3a6486da8141409c3d4e31218eb2bc7eef
parentd6a37c466061be4d51b2fd60ca21c480dbe2a4dd
arch-arm: Introduce HavePACExt helper

This will check for presence of pointer authentication extension.
According to the reference manual, Pointer authentication is
implemented if the value of at least one of

ID_AA64ISAR1_EL1.{APA, API, GPA, GPI}

is not 0b0000.

Change-Id: I4e98e65758e8edc953794e5b618d2c6c3f6000ae
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33454
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/utility.cc
src/arch/arm/utility.hh