Merge pull request #834 from freechipsproject/resumereq-race
debug: Fix race between resumereq and resumeack
This commit is contained in:
commit
ae6971b6db
@ -540,8 +540,10 @@ class TLDebugModuleInner(device: Device, getNComponents: () => Int)(implicit p:
|
|||||||
DMSTATUSRdData.anyrunning := true.B
|
DMSTATUSRdData.anyrunning := true.B
|
||||||
}
|
}
|
||||||
|
|
||||||
DMSTATUSRdData.allresumeack := ~resumeReqRegs(selectedHartReg)
|
val resumereq = io.innerCtrl.fire() && io.innerCtrl.bits.resumereq
|
||||||
DMSTATUSRdData.anyresumeack := ~resumeReqRegs(selectedHartReg)
|
|
||||||
|
DMSTATUSRdData.allresumeack := ~resumeReqRegs(selectedHartReg) && ~resumereq
|
||||||
|
DMSTATUSRdData.anyresumeack := ~resumeReqRegs(selectedHartReg) && ~resumereq
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
DMSTATUSRdData.cfgstrvalid := false.B
|
DMSTATUSRdData.cfgstrvalid := false.B
|
||||||
@ -710,7 +712,7 @@ class TLDebugModuleInner(device: Device, getNComponents: () => Int)(implicit p:
|
|||||||
resumeReqRegs(component) := false.B
|
resumeReqRegs(component) := false.B
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
when(io.innerCtrl.fire() && io.innerCtrl.bits.resumereq) {
|
when(resumereq) {
|
||||||
resumeReqRegs(io.innerCtrl.bits.hartsel) := true.B
|
resumeReqRegs(io.innerCtrl.bits.hartsel) := true.B
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user