semihosting: Split out semihost_sys_flen
commita6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Apr 2022 16:05:36 +0000 (29 09:05 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:05:52 +0000 (28 04:35 +0530)
tree6be1931b6ed81ecf06d1409f986e9313960019c2
parenta2212474301bc354bea46e3bdc6c21e33e0b5b2b
semihosting: Split out semihost_sys_flen

The ARM-specific SYS_FLEN isn't really something that can be
reused by other semihosting apis, but there are parts that can
reused for the implementation of semihost_sys_fstat.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/semihosting/syscalls.h
semihosting/arm-compat-semi.c
semihosting/syscalls.c