RE: [EXTERNAL] Re: [PATCH v2 1/3] [sim/riscv] Add basic semi-hosting support

Jaydeep Patil
2023-12-20T08:52:37Z

Mike Frysinger <vapier@gentoo.org> writes:

> what specification are you implementing ? newlib is an implementation, not a specification.

I am referring to https://github.com/riscv-software-src/riscv-semihosting/blob/main/riscv-semihosting-spec.adoc. This is still a discussion document and not ratified. The document says "RISC-V semihosting borrows from the design of other publicly available and open source semihosting mechanisms to minimize the development effort required. At some stage, the document referred to "Semihosting for AArch32 and AArch64" (https://github.com/riscv-software-src/riscv-semihosting/blob/de2a56ff73439b1d955e361eb4d35c0e8e453a42/riscv-semihosting-spec.adoc). Looking at the implementation of newlib and picolib, they are following the same specification.

Regards,
Jaydeep