Skip to content

target/riscv: always validate dmstatus.version field#21

Merged
aap-sc merged 1 commit intosyntacorefrom
aap-sc/dmstatus_verification
Feb 13, 2026
Merged

target/riscv: always validate dmstatus.version field#21
aap-sc merged 1 commit intosyntacorefrom
aap-sc/dmstatus_verification

Conversation

@aap-sc
Copy link
Collaborator

@aap-sc aap-sc commented Feb 12, 2026

Based On: https://review.openocd.org/c/openocd/+/9460

The dmstatus.version field indicates which revision of the RISC-V debug specification the debug module implements. Since this field is always readable, validating it on every dmstatus access provides a simple and effective check that JTAG communication with the target is functioning correctly.

Change-Id: I2bf40e92269e7ba3c747518e20f39069a1dee363

Based On: https://review.openocd.org/c/openocd/+/9460

The dmstatus.version field indicates which revision of the RISC-V debug
specification the debug module implements. Since this field is always
readable, validating it on every dmstatus access provides a simple
and effective check that JTAG communication with the target is
functioning correctly.

Change-Id: I2bf40e92269e7ba3c747518e20f39069a1dee363
Signed-off-by: Anatoly Parshintsev <kupokupokupopo@gmail.com>
@aap-sc aap-sc merged commit a94fedf into syntacore Feb 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants