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

How to enable trigger fire? #1098

Closed
AlexGJL opened this issue Jan 6, 2025 · 2 comments
Closed

How to enable trigger fire? #1098

AlexGJL opened this issue Jan 6, 2025 · 2 comments

Comments

@AlexGJL
Copy link

AlexGJL commented Jan 6, 2025

There is a watchpoint enable bit in dbgwcr[0] to control watchpoint work in arm, but RV doesn't exist a similar bit to start trigger fire.
How does debugger enable a trigger? 1.use type in tdata1?but tinfo is read only,if we just implement type=6 for this trigger,type in data1 can't be 0; 2. Use m/s/u state enable,and load/store enable etc. in tdata1?

@pdonahue-ventana
Copy link
Collaborator

A trigger will only match if the appropriate mode bit is set and if the appropriate load/store/execute bit is set. There's no need for a top-level enable bit because there are multiple other ways to disable the trigger (and the value of m, s, u, vs, vu, load, store, and execute are all 0 on reset so triggers are disabled by default).

@AlexGJL
Copy link
Author

AlexGJL commented Jan 8, 2025

A trigger will only match if the appropriate mode bit is set and if the appropriate load/store/execute bit is set. There's no need for a top-level enable bit because there are multiple other ways to disable the trigger (and the value of m, s, u, vs, vu, load, store, and execute are all 0 on reset so triggers are disabled by default).

ok, thank you for your reply.

@AlexGJL AlexGJL closed this as completed Jan 8, 2025
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

No branches or pull requests

2 participants