mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-25 06:27:22 -04:00
[rtl] Fix debug step over EBREAK issue
- If there is a request to enter debug mode (either due to a halt request or single stepping mode) on the same cycle as an EBREAK instruction, continue with the EBREAK and capture the ID PC rather than the IF PC. - relates to #1106 Signed-off-by: Tom Roberts <tomroberts@lowrisc.org>
This commit is contained in:
parent
c31d066130
commit
2c22c1ee01
1 changed files with 4 additions and 1 deletions
|
@ -766,7 +766,10 @@ module ibex_controller #(
|
|||
// Leave all other signals as is to ensure CSRs and PC get set as if
|
||||
// core was entering exception handler, entry to debug mode will then
|
||||
// see the appropriate state and setup dpc correctly.
|
||||
if (enter_debug_mode) begin
|
||||
// If an EBREAK instruction is causing us to enter debug mode on the
|
||||
// same cycle as a debug_req or single step, honor the EBREAK and
|
||||
// proceed to DBG_TAKEN_ID.
|
||||
if (enter_debug_mode && !(ebrk_insn_prio && ebreak_into_debug)) begin
|
||||
ctrl_fsm_ns = DBG_TAKEN_IF;
|
||||
end
|
||||
end // FLUSH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue