]> git.proxmox.com Git - mirror_qemu.git/commit
semihosting: Clean up common_semi_flen_cb
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 17 May 2022 02:34:06 +0000 (19:34 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:05:07 +0000 (04:35 +0530)
commit84ca0dfd1e8c0a23fe8aeb22f4141e0b14da2812
tree96915bc5107b1e01cd1c9bc5798338e3802f196f
parent709fe27b189aa86c801b9bd655f9267fec17d0d0
semihosting: Clean up common_semi_flen_cb

Do not read from the gdb struct stat buffer if the callback is
reporting an error. Use common_semi_cb to finish returning results.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
semihosting/arm-compat-semi.c