mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 13:47:13 -04:00
CSR_REGFILE : No need to check single step if we don't support debug mode (#1659)
This commit is contained in:
parent
9f0e1b327d
commit
66287defa0
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue