[RISCV] Why use SEMIHOST_flen for stat on RISCV?

Kito Cheng kito.cheng@gmail.com
Sun May 30 07:09:02 GMT 2021


It's listed on RISC-V semihost spec, and both OpenOCD and Qemu support
SEMIHOST_flen,
so I would suggest you implement that on gdb.

On Fri, May 28, 2021 at 5:30 PM <lifang_xia@linux.alibaba.com> wrote:
>
> 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