Skip to content

RISC-V: Implement CSR tcontrol in debug spec

Alvin Chang via qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/riscv: Add CSR tcontrol of debug trigger moduletarget/riscv/cpu.h target/riscv/cpu_bits.h target/riscv/csr.c+19 -04 replies
2/4target/riscv: Reset CSR tcontrol when the trigger module resetstarget/riscv/debug.c+1 -01 reply
3/4target/riscv: Set the value of CSR tcontrol when trapping to M-modetarget/riscv/cpu_helper.c+6 -01 reply
4/4target/riscv: Set the value of CSR tcontrol when mret is executedtarget/riscv/op_helper.c+6 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchDaniel Henrique Barboza
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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] RISC-V: Implement CSR tcontrol in debug spec

The RISC-V Debug specification defines CSR "tcontrol" in the trigger module:
https://github.com/riscv/riscv-debug-spec

This series implements it and the related operations.

Alvin Chang (4):
target/riscv: Add CSR tcontrol of debug trigger module target/riscv: Reset CSR tcontrol when the trigger module resets target/riscv: Set the value of CSR tcontrol when trapping to M-mode target/riscv: Set the value of CSR tcontrol when mret is executed

 target/riscv/cpu.h        |  1 +
 target/riscv/cpu_bits.h   |  3 +++
 target/riscv/cpu_helper.c |  6 ++++++
 target/riscv/csr.c        | 15 +++++++++++++++
 target/riscv/debug.c      |  1 +
 target/riscv/op_helper.c  |  6 ++++++
 6 files changed, 32 insertions(+)
Signature · 1 line
2.34.1