target/alpha: Implement alpha_cpu_record_sigsegv
commit90113883af311121e22caf505eab55e2eea1aa8e
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 6 Oct 2021 02:31:14 +0000 (5 19:31 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Nov 2021 11:00:52 +0000 (2 07:00 -0400)
treeac095b7fde4f76cdc84429405f8327e34d5b01e8
parent72d2bbf9ff3e1edf5d57b53149eeaa36f19fb891
target/alpha: Implement alpha_cpu_record_sigsegv

Record trap_arg{0,1,2} for the linux-user signal frame.

Fill in the stores to trap_arg{1,2} that were missing
from the previous user-only alpha_cpu_tlb_fill function.
Use maperr to simplify computation of trap_arg1.

Remove the code for EXCP_MMFAULT from cpu_loop, as
that part is now handled by cpu_loop_exit_sigsegv.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/alpha/cpu_loop.c
target/alpha/cpu.c
target/alpha/cpu.h
target/alpha/helper.c