CSR_REGFILE : No need to check single step if we don't support debug mode (#1659)

This commit is contained in:
Jalali 2023-11-28 17:20:10 +00:00 committed by GitHub
parent 9f0e1b327d
commit 66287defa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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