]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: fix stage 2 page-walks in 32-bit emulation
authorRémi Denis-Courmont <remi.denis.courmont@huawei.com>
Wed, 18 Nov 2020 15:04:14 +0000 (17:04 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 23 Nov 2020 10:41:58 +0000 (10:41 +0000)
commit98e8779770c40901ed585745aacc9a8e2b934a28
tree802d8ea88705340c06e8d2715866d38ae831bb97
parent8cc30eb1400fc01f2b139cdd3dc524f8b84dbe07
target/arm: fix stage 2 page-walks in 32-bit emulation

Using a target unsigned long would limit the Input Address to a LPAE
page-walk to 32 bits on AArch32 and 64 bits on AArch64. This is okay
for stage 1 or on AArch64, but it is insufficient for stage 2 on
AArch32. In that later case, the Input Address can have up to 40 bits.

Signed-off-by: Rémi Denis-Courmont <remi.denis.courmont@huawei.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20201118150414.18360-1-remi@remlab.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c