On 9/18/21 20:45, Richard Henderson wrote: > Move the masking of the address from cpu_loop into > s390_cpu_record_sigsegv -- this is governed by hw, not linux. > This does mean we have to raise our own exception, rather > than return to the fallback. > > Use maperr to choose between PGM_PROTECTION and PGM_ADDRESSING. > Use the appropriate si_code for each in cpu_loop. > > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > target/s390x/s390x-internal.h | 13 ++++++++++--- > linux-user/s390x/cpu_loop.c | 14 +++++++------- > target/s390x/cpu.c | 6 ++++-- > target/s390x/tcg/excp_helper.c | 18 +++++++++++------- > 4 files changed, 32 insertions(+), 19 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>