Add return to debug when ebreak detected

This commit is contained in:
Florian Zaruba 2018-06-30 15:23:50 -07:00
parent 8199995c20
commit f2cca400af
No known key found for this signature in database
GPG key ID: E742FFE8EC38A792

View file

@ -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