common-user: Fix tail calls to safe_syscall_set_errno_tailFor the ABIs in which the syscall return register is notalso the first function argument register, move the errnovalue into the correct p
common-user: Fix tail calls to safe_syscall_set_errno_tailFor the ABIs in which the syscall return register is notalso the first function argument register, move the errnovalue into the correct place.Fixes: a3310c0397e2 ("linux-user: Move syscall error detection into safe_syscall_base")Reported-by: Laurent Vivier <laurent@vivier.eu>Tested-by: Laurent Vivier <laurent@vivier.eu>Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>Signed-off-by: Richard Henderson <richard.henderson@linaro.org>Message-Id: <20220104190454.542225-1-richard.henderson@linaro.org>
show more ...
common-user: Move safe-syscall.* from linux-userMove linux-user safe-syscall.S and safe-syscall-error.c to common-userso that bsd-user can also use it. Also move safe-syscall.h toinclude/user/.
common-user: Move safe-syscall.* from linux-userMove linux-user safe-syscall.S and safe-syscall-error.c to common-userso that bsd-user can also use it. Also move safe-syscall.h toinclude/user/. Since there is nothing here that is related to the guest,as opposed to the host, build it once.Reviewed-by: Warner Losh <imp@bsdimp.com>Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>Signed-off-by: Richard Henderson <richard.henderson@linaro.org>