commit | af0484b5025f8b7c951428a00b5bb3f172a2da8d | [log] [tgz] |
---|---|---|
author | Richard Henderson <richard.henderson@linaro.org> | Thu Apr 28 11:40:41 2022 -0700 |
committer | Richard Henderson <richard.henderson@linaro.org> | Tue Jun 28 04:35:52 2022 +0530 |
tree | e60333711f6d6467f0a91fb295e74fda62d6a6f7 | |
parent | 5eadbbfca6232710036ccb9f5cf1481be537c0e7 [diff] |
semihosting: Split out semihost_sys_read Split out the non-ARM specific portions of SYS_READ to a reusable function. This handles all GuestFD. Isolate the curious ARM-specific return value processing to a new callback, common_semi_rw_cb. Note that gdb_do_syscall %x reads target_ulong, not int. Reviewed-by: Luc Michel <lmichel@kalray.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>