target/sparc: Set fault address in sparc_cpu_do_unaligned_access
commitaebe51538b90f76a9085dbdeccd87f295316a1dd
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 23 Jul 2021 23:55:05 +0000 (23 13:55 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Nov 2021 11:00:52 +0000 (2 07:00 -0400)
treef5f68f3c3ef10d7e9e9435e87e8a75e999935f4f
parentc0e0c6fe01e8f2a27b241c226fafb578fd896cb2
target/sparc: Set fault address in sparc_cpu_do_unaligned_access

We ought to have been recording the virtual address for reporting
to the guest trap handler.  Move the function to mmu_helper.c, so
that we can re-use code shared with get_physical_address_data.

Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/sparc/ldst_helper.c
target/sparc/mmu_helper.c