arch-arm: Handle route to EL2 in Supervisor Trap
authorChuan Zhu <chuan.zhu@arm.com>
Mon, 15 Jan 2018 16:14:11 +0000 (16:14 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 8 Feb 2018 09:27:25 +0000 (09:27 +0000)
commitb885dc68a26e0c7a401ca4b338d997ac577847a8
tree6e7ec04faf2f3c928f5ad836ec834293a273df5c
parentb05a197d4c1d1c255eb90a7da302149414ebb0cf
arch-arm: Handle route to EL2 in Supervisor Trap

Supervisor Trap is supposed to be able to handle exceptions routed
to EL2, which is enabled by HCR_EL2.TGE. This fix adds routeToHyp()
function to Supervisor Trap to handle this, similar to that in
UndefinedFault, DataAbort, etc.

Change-Id: I1fcf9f2d445ecbc13c8f6d3b7d599728b0250ab7
Reviewed-by: Jack Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/7961
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/faults.cc
src/arch/arm/faults.hh