mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 13:07:46 -04:00
[rtl] Don't take interrupts when single stepping (#97)
Fixes #1814 Co-authored-by: Greg Chadwick <gac@lowrisc.org>
This commit is contained in:
parent
f6268d4eb9
commit
ec096aafd3
1 changed files with 2 additions and 1 deletions
|
@ -343,7 +343,8 @@ module cve2_controller #(
|
|||
// - while in debug mode [Debug Spec v0.13.2, p.39],
|
||||
// - while in NMI mode (nested NMIs are not supported, NMI has highest priority and
|
||||
// cannot be interrupted by regular interrupts).
|
||||
assign handle_irq = ~debug_mode_q & ~nmi_mode_q &
|
||||
// - while single stepping.
|
||||
assign handle_irq = ~debug_mode_q & ~debug_single_step_i & ~nmi_mode_q &
|
||||
(irq_nm_i | (irq_pending_i & csr_mstatus_mie_i));
|
||||
|
||||
// generate ID of fast interrupts, highest priority to lowest ID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue