aboutsummaryrefslogtreecommitdiff
path: root/target/sparc/mmu_helper.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-11-06 18:33:24 +0000
committerRiku Voipio <riku.voipio@linaro.org>2017-11-07 21:58:43 +0200
commit15e692a6fc716f32976eea47946a4892e8ad7a3f (patch)
tree653cfd3f4c63840dd98b9b52a656e8fa7867447a /target/sparc/mmu_helper.c
parentf2d34df3c1a88a2cf86eb0afc88c369d799ae431 (diff)
linux-user/ppc: Report correct fault address for data faults
For faults on loads and stores, ppc_cpu_handle_mmu_fault() in target/ppc/user_only_helper.c stores the offending address in env->spr[SPR_DAR]. Report this correctly to the guest in si_addr, rather than incorrectly using the address of the instruction that caused the fault. This fixes the test case in https://bugs.launchpad.net/qemu/+bug/1077116 for ppc, ppc64 and ppc64le. Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'target/sparc/mmu_helper.c')
0 files changed, 0 insertions, 0 deletions