debug: Use proper write-1-to-clear ABSTRACTCS.cmderr behavior (because fesvr code is using correct spec)
This commit is contained in:
parent
ca9a5a1cf7
commit
375a039279
@ -617,8 +617,8 @@ class TLDebugModuleInner(device: Device, getNComponents: () => Int)(implicit p:
|
|||||||
ABSTRACTCSReg.cmderr := DebugAbstractCommandError.ErrHaltResume.id.U
|
ABSTRACTCSReg.cmderr := DebugAbstractCommandError.ErrHaltResume.id.U
|
||||||
}.otherwise {
|
}.otherwise {
|
||||||
//TODO: Should be write-1-to-clear & ~ABSTRACTCSWrData.cmderr
|
//TODO: Should be write-1-to-clear & ~ABSTRACTCSWrData.cmderr
|
||||||
when (ABSTRACTCSWrEn && ABSTRACTCSWrData.cmderr === 0.U){
|
when (ABSTRACTCSWrEn /* && ABSTRACTCSWrData.cmderr === 0.U*/){
|
||||||
ABSTRACTCSReg.cmderr := 0.U
|
ABSTRACTCSReg.cmderr := ABSTRACTCSReg.cmderr & ~(ABSTRACTCSWrData.cmderr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user