improve debugPlugin step logic
This commit is contained in:
parent
fd37962a58
commit
12463e40a4
|
@ -213,11 +213,14 @@ class DebugPlugin(val debugClockDomain : ClockDomain, hardwareBreakpointCount :
|
||||||
iBusFetcher.haltIt()
|
iBusFetcher.haltIt()
|
||||||
}
|
}
|
||||||
|
|
||||||
when(stepIt && iBusFetcher.incoming()) {
|
when(stepIt) {
|
||||||
iBusFetcher.haltIt()
|
//Assume nothing will stop the CPU in the decode stage
|
||||||
when(decode.arbitration.isValid) {
|
when(decode.arbitration.isValid) {
|
||||||
haltIt := True
|
haltIt := True
|
||||||
}
|
}
|
||||||
|
when(execute.arbitration.isValid) {
|
||||||
|
decode.arbitration.flushNext := True
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Avoid having two C instruction executed in a single step
|
//Avoid having two C instruction executed in a single step
|
||||||
|
|
Loading…
Reference in New Issue