]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/helper.c
target/arm: Handle page table walk load failures correctly
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Jan 2018 13:28:11 +0000 (13:28 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Jan 2018 13:28:11 +0000 (13:28 +0000)
commit3b39d734141a71296d08af3d4c32f872fafd782e
tree658e17f03ec8749b5cb72b635628ddb2355bf816
parenta2a051591c599172993c07043e13e499736ed193
target/arm: Handle page table walk load failures correctly

Instead of ignoring the response from address_space_ld*()
(indicating an attempt to read a page table descriptor from
an invalid physical address), use it to report the failure
correctly.

Since this is another couple of locations where we need to
decide the value of the ARMMMUFaultInfo ea bit based on a
MemTxResult, we factor out that operation into a helper
function.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c
target/arm/internals.h
target/arm/op_helper.c