Hi, These 2 patches allow scontext-based trigger matching as specified by the Sdtrig extension. Patch 1 allows access to the scontext CSR and patch 2 enforces scontext matching as specified by the textra CSRs.
Florian Lugou (2): target/riscv: Add scontext CSR handling target/riscv: Support matching scontext in Sdtrig's textra CSRs target/riscv/cpu.h | 1 + target/riscv/cpu_bits.h | 5 +++ target/riscv/csr.c | 36 +++++++++++++++++++ target/riscv/debug.c | 76 +++++++++++++++++++++++++++++------------ target/riscv/debug.h | 3 ++ 5 files changed, 100 insertions(+), 21 deletions(-) -- 2.43.0