Skip to content

Improve RISC-V Debug support

[email protected] qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9target/riscv: debug: Determine the trigger type from tdata1.typetarget/riscv/cpu.h target/riscv/csr.c target/riscv/debug.c +2 more+137 -672 replies
2/9target/riscv: debug: Introduce build_tdata1() to build tdata1 register contenttarget/riscv/debug.c+10 -51 reply
3/9target/riscv: debug: Introduce tdata1, tdata2, and tdata3 CSRstarget/riscv/cpu.h target/riscv/debug.c target/riscv/debug.h +1 more+48 -861 reply
4/9target/riscv: debug: Restrict the range of tselect value can be writtentarget/riscv/debug.c+3 -61 reply
5/9target/riscv: debug: Introduce tinfo CSRtarget/riscv/cpu_bits.h target/riscv/csr.c target/riscv/debug.c +1 more+18 -31 reply
6/9target/riscv: debug: Create common trigger actions functiontarget/riscv/debug.c target/riscv/debug.h+66 -21 reply
7/9target/riscv: debug: Check VU/VS modes for type 2 triggertarget/riscv/debug.c+10 -01 reply
8/9target/riscv: debug: Return 0 if previous value written to tselect >= number of triggerstarget/riscv/cpu.h target/riscv/debug.c+7 -01 reply
9/9target/riscv: debug: Add initial support of type 6 triggertarget/riscv/debug.c target/riscv/debug.h+188 -41 reply

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchBin Meng
1/9R-b
2/9R-b
3/9
4/9R-b
5/9R-b
6/9
7/9R-b
8/9
9/9R-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/9] Improve RISC-V Debug support

From: Frank Chang <[email protected]>

This patchset refactors RISC-V Debug support to allow more types of triggers to be extended.

The initial support of type 6 trigger, which is similar to type 2 trigger with additional functionality, is also introduced in this patchset.

Frank Chang (9):
target/riscv: debug: Determine the trigger type from tdata1.type target/riscv: debug: Introduce build_tdata1() to build tdata1 register
content
target/riscv: debug: Introduce tdata1, tdata2, and tdata3 CSRs target/riscv: debug: Restrict the range of tselect value can be
written
target/riscv: debug: Introduce tinfo CSR
target/riscv: debug: Create common trigger actions function target/riscv: debug: Check VU/VS modes for type 2 trigger target/riscv: debug: Return 0 if previous value written to tselect >=
number of triggers
target/riscv: debug: Add initial support of type 6 trigger

 target/riscv/cpu.h      |   7 +-
 target/riscv/cpu_bits.h |   1 +
 target/riscv/csr.c      |  10 +-
 target/riscv/debug.c    | 483 ++++++++++++++++++++++++++++++++--------
 target/riscv/debug.h    |  55 +++--
 target/riscv/machine.c  |  20 +-
 6 files changed, 445 insertions(+), 131 deletions(-)

--
2.36.1