arch-arm: Fix EL2 target exception level for SP alignment fault.
authorJordi Vaquero <jordi.vaquero@metempsy.com>
Mon, 13 Jan 2020 09:47:55 +0000 (10:47 +0100)
committerJordi Vaquero <jordi.vaquero@metempsy.com>
Mon, 20 Jan 2020 14:04:11 +0000 (14:04 +0000)
commit7ac4607385f8490b2a12acaef73f2f31583160f0
tree2e87b310965ee93fc00e5b3275832d87d5b15cf5
parentaf02aa6a0dc89f22dd0d3b37c3fcc63c61d91417
arch-arm: Fix EL2 target exception level for SP alignment fault.

This commit fixes the target exception Level EL2 for alignmemt fault, it
is based on HCR_EL2.tge bit.

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