target-arm: Fix broken SCTLR_EL3 reset
commite46e1a74ef482f1ef773e750df9654ef4442ca29
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 15 Jul 2015 16:16:26 +0000 (15 17:16 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 15 Jul 2015 16:16:26 +0000 (15 17:16 +0100)
tree701037940157f7a0acce908a4d049a0d003341e1
parent711dc6f36b74fe65a6e5a1847f1152717d887f8a
target-arm: Fix broken SCTLR_EL3 reset

The SCTLR_EL3 cpreg definition was implicitly resetting the
register state to 0, which is both wrong and clashes with
the reset done via the SCTLR definition (since sctlr[3]
is unioned with sctlr_s). This went unnoticed until recently,
when an unrelated change (commit a903c449b41f105aa) happened to
perturb the order of enumeration through the cpregs hashtable for
reset such that the erroneous reset happened after the correct one
rather than before it. Fix this by marking SCTLR_EL3 as an alias,
so its reset is left up to the AArch32 view.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target-arm/helper.c