[RISCV] Why use SEMIHOST_flen for stat on RISCV?

lifang_xia@linux.alibaba.com lifang_xia@linux.alibaba.com
Fri May 28 09:14:23 GMT 2021


Hi,

Recently, when using semihosting to do some test in a project, I found that
the stat syscall of RISCV uses SEMIHOST_flen, but this syscall is not in the
GDB file-IO support list. Only supported in openOCD.

What are the considerations for doing this? May I modify it to "stat" and
"fstat" supported by GDB's FILE-IO?

 

Thanks,

Lifang Xia.



More information about the Newlib mailing list