qemu-e2k/semihosting
Richard Henderson 709fe27b18 semihosting: Adjust error checking in common_semi_cb
The err parameter is non-zero if and only if an error occured.
Use this instead of ret == -1 for determining if we need to
update the saved errno.

This fixes the errno setting of SYS_ISTTY, which returns 0 on
error, not -1.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2022-06-28 04:35:07 +05:30
..
arm-compat-semi.c semihosting: Adjust error checking in common_semi_cb 2022-06-28 04:35:07 +05:30
common-semi.h
config.c semihosting/config: Merge --semihosting-config option groups 2022-06-10 14:32:36 +01:00
console.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
guestfd.c semihosting: Split out guestfd.c 2022-06-28 04:35:07 +05:30
Kconfig
meson.build semihosting: Split out guestfd.c 2022-06-28 04:35:07 +05:30
uaccess.c semihosting: Simplify softmmu_lock_user_string 2022-06-28 04:35:06 +05:30