diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-07-09 16:06:21 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-07-18 10:59:46 +0100 |
commit | d102058e795229f53a443a58d10d8b457e96acb4 (patch) | |
tree | ea0004c3030c408ea28e908919831dc0269da3d0 /crypto/secret_keyring.c | |
parent | a97fca4ceb9d9b10aa8b582e817a5ee6c42ffbaf (diff) |
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>
Diffstat (limited to 'crypto/secret_keyring.c')
0 files changed, 0 insertions, 0 deletions