Skip to content

Commit

Permalink
CSR_REGFILE : No need to check single step if we don't support debug …
Browse files Browse the repository at this point in the history
…mode (#1659)
  • Loading branch information
AyoubJalali authored Nov 28, 2023
1 parent 9f0e1b3 commit 66287de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/csr_regfile.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,8 @@ module csr_regfile
assign irq_ctrl_o.mideleg = mideleg_q;
assign irq_ctrl_o.global_enable = (~debug_mode_q)
// interrupts are enabled during single step or we are not stepping
& (~dcsr_q.step | dcsr_q.stepie)
// No need to check interrupts during single step if we don't support DEBUG mode
& (~CVA6Cfg.DebugEn | (~dcsr_q.step | dcsr_q.stepie))
& ((mstatus_q.mie & (priv_lvl_o == riscv::PRIV_LVL_M))
| (priv_lvl_o != riscv::PRIV_LVL_M));

Expand Down

0 comments on commit 66287de

Please sign in to comment.