target-arm: Fix handling of SCR.SMD
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Feb 2016 14:16:15 +0000 (14:16 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Feb 2016 14:16:15 +0000 (14:16 +0000)
commitf096e92b6385fd87e8ea948ad3af70faf752c13a
treeb93b25e35747834cf45857c265a55fffa74e6919
parent755026728abb19fba70e6b4396a27fa2e7550d74
target-arm: Fix handling of SCR.SMD

We weren't quite implementing the handling of SCR.SMD correctly.
The condition governing whether the SMD bit should apply only
for NS state is "is EL3 is AArch32", not "is the current EL AArch32".
Fix the condition, and clarify the comment both to reflect this and
to expand slightly on what's going on for the v7-no-Virtualization case.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Sergey Fedorov <serge.fdrv@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target-arm/op_helper.c