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

Single step and debug cause cleanup #719

Conversation

silabs-oysteink
Copy link
Contributor

Removed dependency on other pending debug causes when setting 'pending_single_step.

Updated setting of debug_cause_n, all possible causes are now in the priority (0.13.2, will be updated for 1.0.0). When all casues are set, some code cleanup faning into kill_wb from the DEBUG_TAKEN state was possible.

Updaed RVFI to account for the possibility of have pending_single_step active at the same time as there can be pending async or sync debug reasons.

Signed-off-by: Oystein Knauserud [email protected]

…g_single_step.

Updated setting of debug_cause_n, all possible causes are now in the priority (0.13.2, will be updated for 1.0.0). When all casues are set, some code cleanup faning into kill_wb from the DEBUG_TAKEN state was possible.

Updaed RVFI to account for the possibility of have pending_single_step active at the same time as there can be pending async or sync debug reasons.

Signed-off-by: Oystein Knauserud <[email protected]>
@silabs-oysteink silabs-oysteink added the Component:RTL For issues in the RTL (e.g. for files in the rtl directory) label Dec 8, 2022
@silabs-oysteink
Copy link
Contributor Author

Partly fixes issue #345.

assign debug_cause_n = (trigger_match_in_wb || etrigger_wb_i) ? DBG_CAUSE_TRIGGER : // Etrigger will enter DEBUG_TAKEN as a single step (no halting), but kill pipeline as non-stepping entries.
(ebreak_in_wb && dcsr_i.ebreakm && !debug_mode_q) ? DBG_CAUSE_EBREAK : // Ebreak during machine mode
(ebreak_in_wb && debug_mode_q) ? DBG_CAUSE_EBREAK : // Ebreak during debug mode
(pending_async_debug && async_debug_allowed) ? DBG_CAUSE_HALTREQ :
Copy link
Contributor

Choose a reason for hiding this comment

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

I had expected debug_cause_q here, but this works as well

@Silabs-ArjanB Silabs-ArjanB merged commit d4883d6 into openhwgroup:master Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:RTL For issues in the RTL (e.g. for files in the rtl directory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants