target/arm: Implement ESR_EL2/HSR for AArch32 and no-EL2
commit68e78e332cb1c3f8b0317a0443acb2b5e190f0dd
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 20 Aug 2018 10:24:32 +0000 (20 11:24 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 20 Aug 2018 10:24:32 +0000 (20 11:24 +0100)
tree14bf589d9c738f0bbce5d7bf43b3bd91afa867a8
parentcba517c31e7df8932c4473c477a0f01d8a0adc48
target/arm: Implement ESR_EL2/HSR for AArch32 and no-EL2

The AArch32 HSR is the equivalent of AArch64 ESR_EL2;
we can implement it by marking our existing ESR_EL2 regdef
as STATE_BOTH. It also needs to be "RES0 from EL3 if
EL2 not implemented", so add the missing stanza to
el3_no_el2_cp_reginfo.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Luc Michel <luc.michel@greensocs.com>
Message-id: 20180814124254.5229-8-peter.maydell@linaro.org
target/arm/helper.c