-
Notifications
You must be signed in to change notification settings - Fork 91
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
DBTR How to discovery chained triggers capabilities #163
Comments
The SBI DBTR extension exposes logical debug triggers to the supervisor software because the SBI implementation could be a hypervisor running in HS-mode where the debug triggers are shared between host (hypervisor) and guest. Even for M-mode SBI implementation, the debug triggers might be shared between external debugger and HS-mode. The To detect chaining, just pass a valid |
Hi, @avpatel, thank you for your reply! As you said, chaining capabilities of hardware debug triggers can be discovered with the Process of discovering chained triggers capabilities requires information about the order of the hardware debug triggers, because Sdtrig extension specification allows hardware to have non-uniform triggers, where some set of triggers supports only a subset of features. As an example, I can propose a valid hardware configuration (in terms of Sdtrig SPEC) that has the following hardware debug triggers structure:
In this case the When faced with this problem it is tempting to use Could you please comment this on whether this idea is correct? In turn, I may be wrong, misunderstanding something in SBI SPEC. Otherwise, if that is the case, I would propose to make the P. S. I suppose, there is also another problem with |
Current version of DBTR extension documentation proposes to use
sbi_debug_num_triggers
in boot time of S-mode application due to discovery of hardware debug triggers capabilities. It easily allows to count number of triggers that support configuration specified withtdata1
CSR value, discover supported trigger types & optional bit fields.But It is unclear how chaining capabilities could be discovered using this method. What method should be used to figure out
As an example we can meet hardware implementation supporting 4 mcontrol6 triggers where the 1st and 3rd triggers are breakpoints only, 2nd and 4th triggers are watchpoints only. In this case probe with
sbi_debug_num_triggers
says us, that there are 2 breakpoints supported, but there is no way to get out information, that breakpoints can't be chained.The text was updated successfully, but these errors were encountered: