arm: Use the target EL state when determining fault format
authorAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 27 May 2016 14:02:01 +0000 (15:02 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 27 May 2016 14:02:01 +0000 (15:02 +0100)
commit4a6bb821233e376e0ef9b2779243e968ce494dda
tree102aa2be0b6e5cdf87709c7934665ec4af6c9a76
parent2ace05044cab3c7cf2a6d143b5927d47f3a9dc0a
arm: Use the target EL state when determining fault format

We currently check the current state instead of the state of the
target EL when determining how we report a fault. This breaks
interprocessing since EL0 in aarch32 would report its fault status
using the aarch32 registers even if EL1 is in aarch64. Fix this to
report the fault using the format of the target EL.

Change-Id: Ic080267ac210783d1e01c722a4ddaa687dce280e
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Mitch Hayenga <mitch.hayenga@arm.com>
src/arch/arm/faults.cc