arch-arm: fix routeToHyp for AArch64 in faults
authorAdrian Herrera <adrian.herrera@arm.com>
Fri, 8 Nov 2019 11:12:24 +0000 (11:12 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 13 Nov 2019 17:33:55 +0000 (17:33 +0000)
commit6a2961d81b532d2a69c9b7c10eae1d617cd0e3d4
tree0f2e4c97c2a60c2572e4465af6e41e672fb2e12c
parente50eec0a04e448c06e36090bb39c72a341ab1da0
arch-arm: fix routeToHyp for AArch64 in faults

This patch fixes several bugs in Fault classes "routeToHyp" member
function by which mode checking was not taking into account AArch64
execution state. For the particular case of SVC calls from NS EL0, this
prevented a correct routing to EL2 when HCR_EL2.TGE was set.

Change-Id: I5815fe6dcf4501f52bf92f61687ef6d6ef950e52
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22725
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
src/arch/arm/faults.cc