target/arm: Adjust format test in scr_write
commitbfe43e3d14687f2149451f278671c2c552d96b0a
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 10 Jun 2022 13:32:35 +0000 (10 14:32 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Jun 2022 13:32:35 +0000 (10 14:32 +0100)
treeb560e74a6212b7c63088a6ef898d1f79020ed8ac
parent284ad5e70c41e02553aeb2c1eaf4e828499cb315
target/arm: Adjust format test in scr_write

Because reset always initializes the AA64 version, SCR_EL3,
test the mode of EL3 instead of the type of the cpreg.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220609214657.1217913-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c