target-arm: Extend FP checks to use an EL
commit9dbbc748d671c70599101836cd1c2719d92f3017
authorGreg Bellows <greg.bellows@linaro.org>
Fri, 29 May 2015 10:28:53 +0000 (29 11:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 May 2015 10:28:53 +0000 (29 11:28 +0100)
treed62b6b96e7acac84e37e2d1aa0d906617dfcc37a
parent3cf6a0fcedd429693d439556543400d5f0e31e1d
target-arm: Extend FP checks to use an EL

Extend the ARM disassemble context to take a target exception EL instead of a
boolean enable. This change reverses the polarity of the check making a value
of 0 indicate floating point enabled (no exception).

Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
[PMM: Use a common TB flag field for AArch32 and AArch64;
 CPTR_EL2 exists in v7; CPTR_EL2 should trap for EL2 accesses;
 CPTR_EL2 should not trap for secure accesses; CPTR_EL3
 should trap for EL3 accesses; CPACR traps for secure
 accesses should trap to EL3 if EL3 is AArch32]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target-arm/cpu.h
target-arm/translate-a64.c
target-arm/translate.c
target-arm/translate.h