Richard Henderson d102058e79 target/arm: Fix offsets for TTBCR
The functions vmsa_ttbcr_write and vmsa_ttbcr_raw_write expect
the offset to be for the complete TCR structure, not the offset
to the low 32-bits of a uint64_t.  Using offsetoflow32 in this
case breaks big-endian hosts.

For TTBCR2, we do want the high 32-bits of a uint64_t.
Use cp15.tcr_el[*].raw_tcr as the offsetofhigh32 argument to
clarify this.

Buglink: https://gitlab.com/qemu-project/qemu/-/issues/187
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210709230621.938821-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2021-07-18 10:59:46 +01:00
..
2021-07-18 10:59:46 +01:00
2021-07-12 11:02:39 +01:00
2021-07-12 11:02:39 +01:00
2021-07-13 08:13:19 -07:00
2021-07-12 11:02:39 +01:00
2021-07-12 11:02:39 +01:00
2021-07-12 15:58:17 +01:00
2021-07-12 11:02:39 +01:00
2021-07-12 11:02:39 +01:00
2021-07-12 11:02:39 +01:00
2021-07-12 19:15:11 +01:00
2021-07-12 11:02:39 +01:00
2021-07-12 11:02:39 +01:00
2021-07-12 11:02:39 +01:00
2021-07-12 11:02:39 +01:00