1
0

Mask interrupts during single-step

This commit is contained in:
Andrew Waterman 2016-06-22 17:17:52 -07:00
parent 5644a2703a
commit 6d43c0a945

View File

@ -223,7 +223,7 @@ class CSRFile(implicit p: Parameters) extends CoreModule()(p)
val all_interrupts = m_interrupts | s_interrupts
val interruptMSB = BigInt(1) << (xLen-1)
val interruptCause = interruptMSB + PriorityEncoder(all_interrupts)
io.interrupt := all_interrupts.orR || reg_singleStepped
io.interrupt := all_interrupts.orR && !io.singleStep || reg_singleStepped
io.interrupt_cause := interruptCause
io.bp := reg_bp take p(NBreakpoints)