arch-arm: SVE instruction in EL1s cannot be trapped to EL2
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 1 May 2020 14:13:01 +0000 (15:13 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Sat, 9 May 2020 21:35:44 +0000 (21:35 +0000)
commit2f9cc04a5f9e2a13e93c57270226f3a83120e408
tree4051aa2fe05744679736e9f7e9849fef3a687e0e
parent0b7e0199fb38f46f86b28e7d654b4939d99b7cc3
arch-arm: SVE instruction in EL1s cannot be trapped to EL2

haveVirtualization() is not a valid check on its own:
We need to check if EL2 trapping is currently supported and this
can only happen if we are in NS state or if SecEL2 is implemented

Change-Id: Ie2312caba1ac0f186a2a3305c55a23c7705ba3fd
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28769
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/insts/static_inst.cc