mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-24 14:17:16 -04:00
✨ Add return to debug when ebreak detected
This commit is contained in:
parent
8199995c20
commit
f2cca400af
1 changed files with 4 additions and 0 deletions
|
@ -546,6 +546,10 @@ module csr_regfile #(
|
|||
dcsr_d.cause = DBG_CAUSE_SINGLE_STEP;
|
||||
end
|
||||
end
|
||||
// go in halt-state again when we encounter an exception
|
||||
if (debug_mode_q && ex_i.valid && ex_i.cause == BREAKPOINT) begin
|
||||
set_debug_pc_o = 1'b1;
|
||||
end
|
||||
|
||||
// ------------------------------
|
||||
// MPRV - Modify Privilege Level
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue