Add RISC-V semihosting 0.2. Finish ARM semihosting 2.0
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | semihosting: Move ARM semihosting code to shared directoriesdefault-configs/ default-configs/ default-configs/ +8 more | +11 | 0 replies | |
| 2/9 | semihosting: Change common-semi API to be architecture-independenthw/ hw/ linux-user/ +4 more | +59 | 0 replies | |
| 3/9 | semihosting: Change internal common-semi interfaces to use CPUState *hw/ | +187 | 0 replies | |
| 4/9 | semihosting: Support SYS_HEAPINFO when env->boot_info is not sethw/ | +42 | 0 replies | |
| 5/9 | riscv: Add semihosting supportdefault-configs/ default-configs/ default-configs/ +10 more | +162 | 0 replies | |
| 6/9 | riscv: Add semihosting support for user modelinux-user/ | +5 | 0 replies | |
| 7/9 | semihosting: Implement SYS_ELAPSED and SYS_TICKFREQhw/ include/ util/ | +22 | 0 replies | |
| 8/9 | semihosting: Implement SYS_TMPNAMhw/ | +19 | 0 replies | |
| 9/9 | semihosting: Implement SYS_ISERRORhw/ | +4 | 0 replies |
Reviews trailers per patch
4 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Alistair Francis | Keith Packard |
|---|---|---|
| 1/9 | R-b | |
| 2/9 | R-b | |
| 3/9 | R-b | |
| 4/9 | ||
| 5/9 | ||
| 6/9 | R-b | |
| 7/9 | ||
| 8/9 | ||
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/9] Add RISC-V semihosting 0.2. Finish ARM semihosting 2.0
This series adds support for RISC-V Semihosting, version 0.2 as specified here:
https://github.com/riscv/riscv-semihosting-spec/releases/tag/0.2
This specification references the ARM semihosting release 2.0 as specified here:
https://static.docs.arm.com/100863/0200/semihosting.pdf
That specification includes several semihosting calls which were not previously implemented. This series includes implementations for the remaining calls so that both RISC-V and ARM versions are now complete.
Tests for release 2.0 can be found in picolibc on the semihost-2.0-all branch:
https://github.com/picolibc/picolibc/tree/semihost-2.0-all
These tests uncovered a bug in the SYS_HEAPINFO implementation for ARM, which has been fixed in this series as well.
The series is structured as follows:
1. Move shared semihosting files
2. Change public common semihosting APIs
3. Change internal semihosting interfaces
4. Fix SYS_HEAPINFO crash on ARM
5-6. Add RISC-V semihosting implementation
7-9. Add missing semihosting operations from release 2.0