arch-arm: Secure EL2 checking
authorAdrian Herrera <adrian.herrera@arm.com>
Wed, 6 Nov 2019 13:07:28 +0000 (13:07 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 18 Dec 2019 09:14:08 +0000 (09:14 +0000)
commitec9ce6239d0c3a4e6141961bfb9caae50b9caac9
treeceffaea840aa448c2a9de043a36201ea6696c5f6
parentb18c2e575ee079b873767b57604138e00bc1c465
arch-arm: Secure EL2 checking

This patch adds Armv8.4-SecEL2 checking. Helpers implementing
EL2Enabled, IsSecureEL2Enabled and HaveSecureEL2Ext following
the architecture pseudocode are provided. These are intended
to be used for checking register access permissions.

Change-Id: I3d06d0127cf165c1eeaf3302830742d610cef719
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23766
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/miscregs_types.hh
src/arch/arm/utility.cc
src/arch/arm/utility.hh