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

Which instruction should be reported when trigger's timing = 0/1. #96

Open
vang2333 opened this issue Mar 15, 2024 · 0 comments
Open

Which instruction should be reported when trigger's timing = 0/1. #96

vang2333 opened this issue Mar 15, 2024 · 0 comments

Comments

@vang2333
Copy link

vang2333 commented Mar 15, 2024

If timing = 1, the trigger fires after the instruction retire, so it's not ambiguous that we should report the instruction that fires.
But if timing = 0, the trigger fires before the instruction retire, so whether we should report the prior instruction before the instruction that fires?

What will happen when triggers with different actions fires at the same time?
For example, if one trigger whose action = 1, timing = 0, and one trigger whose action = 4, timing=0 fire at the same time, when entering debug mode, the instruction that fires doesn't actually retire. If we need to trace the instruction, we need to wait the instruction write back and really reitre. But when enter debug,dpc could be changed. So when exit debug, the first instruction won't be the triggered instruction.

(riscv-debug-stable 5.3 says What happens with trace actions when triggers with different actions are also firing is left to the trace specification, But we didn't find the related description)

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

1 participant