Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make TDATA2 RW. Openocd requires this for hw breakpoints #444

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

jdavidberger
Copy link
Contributor

https://riscv.org/wp-content/uploads/2024/12/riscv-debug-release.pdf

Most trigger functionality is optional. All tdata registers follow write-any-read-legal semantics. If a
debugger writes an unsupported configuration, the register will read back a value that is supported
(which may simply be a disabled trigger). This means that a debugger must always read back
values it writes to tdata registers, unless it already knows already what is supported. Writes to
one tdata register may not modify the contents of other tdata registers, nor the configuration of
any trigger besides the one that is currently selected.

OpenOCD in particular reads back this value and if it doesn't match; won't use the breakpoint

@Dolu1990 Dolu1990 merged commit 229fecd into SpinalHDL:master Feb 14, 2025
1 check failed
@Dolu1990
Copy link
Member

Thanks ^^

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