]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Define arm_cpu_do_unaligned_access for user-only
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 26 Jun 2020 03:31:12 +0000 (20:31 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Jun 2020 13:31:12 +0000 (14:31 +0100)
commit0d1762e931f8a694f261c604daba605bcda70928
tree2090b1ec236a0f80f282186d706b50b47b8b06e3
parentdad3015f55f8d48f84f0eae36021a9c6f9587e57
target/arm: Define arm_cpu_do_unaligned_access for user-only

Use the same code as system mode, so that we generate the same
exception + syndrome for the unaligned access.

For the moment, if MTE is enabled so that this path is reachable,
this would generate a SIGSEGV in the user-only cpu_loop.  Decoding
the syndrome to produce the proper SIGBUS will be done later.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200626033144.790098-15-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c
target/arm/tlb_helper.c