Skip to content

Add RISC-V semihosting 0.2. Finish ARM semihosting 2.0

Keith Packard qemu-arm qemu-devel qemu-riscv 1 version Applied

Status from this message: Queued to semihosting/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8semihosting: Move ARM semihosting code to shared directories [v3]default-configs/devices/arm-softmmu.mak default-configs/targets/aarch64-linux-user.mak default-configs/targets/arm-linux-user.mak +7 more+10 -50 replies
2/8semihosting: Change common-semi API to be architecture-independenthw/semihosting/common-semi.c hw/semihosting/common-semi.h linux-user/aarch64/cpu_loop.c +4 more+59 -190 replies
3/8semihosting: Change internal common-semi interfaces to use CPUState * [v2]hw/semihosting/common-semi.c+185 -1650 replies
4/8semihosting: Support SYS_HEAPINFO when env->boot_info is not sethw/semihosting/common-semi.c+41 -10 replies
5/8riscv: Add semihosting support [v13]default-configs/devices/riscv32-softmmu.mak default-configs/devices/riscv64-softmmu.mak default-configs/targets/riscv32-linux-user.mak +10 more+162 -125 replies
6/8semihosting: Implement SYS_ELAPSED and SYS_TICKFREQhw/semihosting/common-semi.c include/qemu/timer.h util/qemu-timer-common.c+22 -00 replies
7/8semihosting: Implement SYS_TMPNAMhw/semihosting/common-semi.c+19 -20 replies
8/8semihosting: Implement SYS_ISERRORhw/semihosting/common-semi.c+4 -00 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlistair FrancisKeith Packard
SeriesR-b R-b R-b R-b
1/8R-b
2/8R-b
3/8R-b
4/8
5/8R-b
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] 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. Add RISC-V semihosting implementation
6-8. Add missing semihosting operations from release 2.0