qemu/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
arm
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
riscv
s390x
sparc64
x86_64 common-user: Fix tail calls to safe_syscall_set_errno_tail 2022-01-04 15:41:03 -08:00