Treat exceptions as steps for the purposes of single-stepping
This commit is contained in:
parent
9cf86fa105
commit
a454edaaf7
@ -503,7 +503,7 @@ class CSRFile(perfEventSets: EventSets = new EventSets(Seq()))(implicit p: Param
|
|||||||
when (pending_interrupts.orR || exception) { reg_wfi := false }
|
when (pending_interrupts.orR || exception) { reg_wfi := false }
|
||||||
assert(!reg_wfi || io.retire === UInt(0))
|
assert(!reg_wfi || io.retire === UInt(0))
|
||||||
|
|
||||||
when (io.retire(0)) { reg_singleStepped := true }
|
when (io.retire(0) || exception) { reg_singleStepped := true }
|
||||||
when (!io.singleStep) { reg_singleStepped := false }
|
when (!io.singleStep) { reg_singleStepped := false }
|
||||||
assert(!io.singleStep || io.retire <= UInt(1))
|
assert(!io.singleStep || io.retire <= UInt(1))
|
||||||
assert(!reg_singleStepped || io.retire === UInt(0))
|
assert(!reg_singleStepped || io.retire === UInt(0))
|
||||||
|
Loading…
Reference in New Issue
Block a user