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

Add JTAG Debug Module support for Ibex core #58

Merged
merged 44 commits into from
Mar 19, 2024

Conversation

rivos-eblot
Copy link

No description provided.

do_trigger_action was introduced by commit d1c1114 and takes a trigger index
as parameter.
riscv_cpu_debug_excp_handler is also changed to call do_trigger_action but is
passing an action enum value (DBG_ACTION_BP) into the trigger index parameter.

Change do_trigger_action parameter from a trigger index to a trigger_action_t
to satisfy all callers.

Signed-off-by: Emmanuel Blot <[email protected]>
cpu_handle_guest_debug() calls this function and we want to call 
guest debugging from alternative debug implementation(s) to GDB.

Signed-off-by: Emmanuel Blot <[email protected]>
This matches the common syntax for qemu_log calls

Signed-off-by: Emmanuel Blot <[email protected]>
RISC-V DM supports up to 2 dscratch registers; many implementations use 2.

Signed-off-by: Emmanuel Blot <[email protected]>
This is the default configuration with OpenTitan project.

Signed-off-by: Emmanuel Blot <[email protected]>
This enables accessing CSR register names for trace/log purposes.

Signed-off-by: Emmanuel Blot <[email protected]>
Accessing a CSR in debug mode should not reset debug mode. This should be
a transient state to allow accessing CSR register in debug mode.

Signed-off-by: Emmanuel Blot <[email protected]>
* cpu_handle_guest_debug may delegate debug exception handling to debug_request
* cpu_exec_loop may delegate single stepping handling to debug_enable_singlestep

Signed-off-by: Emmanuel Blot <[email protected]>
Note that DCSR STEPIE is not yet supported.

Signed-off-by: Emmanuel Blot <[email protected]>
This reverts commit b1c5948, now that
pyot.py has been fixed.

Signed-off-by: Emmanuel Blot <[email protected]>
Copy link

@loiclefort loiclefort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (already reviewed and tested at Rivos)

@rivos-eblot rivos-eblot merged commit b46d6c2 into lowRISC:ot-darjeeling-8.2.0 Mar 19, 2024
5 checks passed
@rivos-eblot rivos-eblot deleted the dev/ebl/jtag_sync branch March 19, 2024 17:31
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