target/ppc: Implement ppc_cpu_record_sigsegv
commit1db8af5c87ef5c89ecdb9e2d2620cd38cfbca940
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 18 Sep 2021 13:37:19 +0000 (18 06:37 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Nov 2021 11:00:52 +0000 (2 07:00 -0400)
tree5c31eb459980b5e8e08fdf32faf549b68e80496c
parent12f0bc55791bd6e0864a430a0c3c9518ae7622e8
target/ppc: Implement ppc_cpu_record_sigsegv

Record DAR, DSISR, and exception_index.  That last means
that we must exit to cpu_loop ourselves, instead of letting
exception_index being overwritten.

This is exactly what the user-mode ppc_cpu_tlb_fill does,
so simply rename it as ppc_cpu_record_sigsegv.

Reviewed-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/ppc/cpu.h
target/ppc/cpu_init.c
target/ppc/internal.h
target/ppc/user_only_helper.c