summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorArd Biesheuvel2018-01-25 12:45:28 +0100
committerPeter Maydell2018-01-25 12:45:28 +0100
commit9aea1ea31af25fe344a88da086ff913cca09c667 (patch)
treee9cf04113ff4af8f7cf46bc4e176423815b02560 /scripts/checkpatch.pl
parentMerge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-2.12-pull-r... (diff)
downloadqemu-9aea1ea31af25fe344a88da086ff913cca09c667.tar.gz
qemu-9aea1ea31af25fe344a88da086ff913cca09c667.tar.xz
qemu-9aea1ea31af25fe344a88da086ff913cca09c667.zip
target/arm: Fix 32-bit address truncation
Commit ("3b39d734141a target/arm: Handle page table walk load failures correctly") modified both versions of the page table walking code (i.e., arm_ldl_ptw and arm_ldq_ptw) to record the result of the translation in a temporary 'data' variable so that it can be inspected before being returned. However, arm_ldq_ptw() returns an uint64_t, and using a temporary uint32_t variable truncates the upper bits, corrupting the result. This causes problems when using more than 4 GB of memory in a TCG guest. So use a uint64_t instead. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Message-id: 20180119194648.25501-1-ard.biesheuvel@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions