qemu-e2k/common-user/host
Richard Henderson d7478d4229 common-user: Fix tail calls to safe_syscall_set_errno_tail
For the ABIs in which the syscall return register is not
also the first function argument register, move the errno
value into the correct place.

Fixes: a3310c0397 ("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>
2022-01-04 15:41:03 -08:00
..
aarch64 common-user: Adjust system call return on FreeBSD 2021-12-20 10:12:29 -08:00
arm common-user: Adjust system call return on FreeBSD 2021-12-20 10:12:29 -08:00
i386 common-user: Fix tail calls to safe_syscall_set_errno_tail 2022-01-04 15:41:03 -08:00
loongarch64 common-user: Add safe syscall handling for loongarch64 hosts 2021-12-21 13:17:06 -08:00
mips common-user: Fix tail calls to safe_syscall_set_errno_tail 2022-01-04 15:41:03 -08:00
ppc64 common-user: Move safe-syscall.* from linux-user 2021-12-20 10:12:24 -08:00
riscv common-user: Move safe-syscall.* from linux-user 2021-12-20 10:12:24 -08:00
s390x common-user: Move safe-syscall.* from linux-user 2021-12-20 10:12:24 -08:00
sparc64 common-user: Move safe-syscall.* from linux-user 2021-12-20 10:12:24 -08:00
x86_64 common-user: Fix tail calls to safe_syscall_set_errno_tail 2022-01-04 15:41:03 -08:00