arch-arm: isSecureBelow from armarm pseudocode
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 22 Dec 2017 12:30:05 +0000 (12:30 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 7 Feb 2018 15:06:50 +0000 (15:06 +0000)
commitd7062b1273dfcfac0690dff88470c4ebf28f09c1
treefc6bd9d0a1a72176caa9482b957f06b60f994f29
parent234fba56bc6dde84c9a6a57e539676fa55b0ff76
arch-arm: isSecureBelow from armarm pseudocode

This patch introduces the inSecureBelow pseudocode function
defined in the armarm documentation. It also replaces the
inSecureState function call which was improperly used in
ELIs32: we might be in secure state (EL3), but with non-secure
lower ELs (SCR.NS = 1).

Change-Id: I01febcb54392ad4e51e785b4d5153aeb3437c778
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Chuan Zhu <chuan.zhu@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/7221
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/utility.cc
src/arch/arm/utility.hh