Skip to content

riscv: Add semihosting support [v10]

Keith Packard qemu-arm qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4semihosting: Move ARM semihosting code to shared directorieshw/semihosting/common-semi.c hw/semihosting/meson.build linux-user/arm/meson.build +3 more+4 -58 replies
2/4semihosting: 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/4semihosting: Change internal common-semi interfaces to use CPUState *hw/semihosting/common-semi.c+164 -1620 replies
4/4riscv: Add semihosting support [v10]default-configs/devices/riscv32-softmmu.mak default-configs/devices/riscv64-softmmu.mak hw/semihosting/common-semi.c +10 more+132 -120 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAlistair Francis
1/4R-b
2/4
3/4
4/4

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/4] riscv: Add semihosting support [v10]

This series first adapts the existing ARM semihosting code to be architecture-neutral, then adds RISC-V semihosting support using that.

Patch 1/4 moves the ARM semihosting support code to common directories and adapts the build system to match.

Patch 2/4 changes the public API to this code to use architecture-independent names and types.

Patch 3/4 changes the internals of this code to use architecture neutral types where practical, and adds helper functions to abstract away the architecture-specific details.

Patch 4/4 adds the RISC-V support, including modifying the breakpoint handling code to recognize a semihosting sequence and adding RISC-V specific implementations of the helper functions.