arch-arm: Trap to EL2 only if not in Secure State
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 24 Oct 2018 09:32:20 +0000 (10:32 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 26 Oct 2018 09:45:47 +0000 (09:45 +0000)
commit16860301e804af0051a83f84c084b9e4c11eacb4
treec366db8706c4500515a7dcb29d67e100358be2a8
parent438ecf9cb08f8e5681ef39df7f6709b8fdec2d50
arch-arm: Trap to EL2 only if not in Secure State

MRS/MSR Instructions should trap to EL2 only if we are in non-Secure
state since at the current implementation (Armv8.0) there is no Secure
EL2.

Change-Id: I93af415fbcbd19a470752adf6afc92e520e9645d
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/13777
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/isa/insts/data64.isa
src/arch/arm/utility.cc
src/arch/arm/utility.hh