debug: correctly consider .transfer bit in COMMAND
This commit is contained in:
parent
79477fbea6
commit
b44d5f9386
@ -915,8 +915,8 @@ class TLDebugModuleInner(device: Device, getNComponents: () => Int)(implicit p:
|
|||||||
|
|
||||||
val commandRegIsUnsupported = Wire(init = true.B)
|
val commandRegIsUnsupported = Wire(init = true.B)
|
||||||
val commandRegBadHaltResume = Wire(init = false.B)
|
val commandRegBadHaltResume = Wire(init = false.B)
|
||||||
when (commandRegIsAccessRegister && accessRegisterCommandReg.transfer) {
|
when (commandRegIsAccessRegister) {
|
||||||
when ((accessRegisterCommandReg.regno >= 0x1000.U && accessRegisterCommandReg.regno <= 0x101F.U)){
|
when (!accessRegisterCommandReg.transfer || (accessRegisterCommandReg.regno >= 0x1000.U && accessRegisterCommandReg.regno <= 0x101F.U)){
|
||||||
commandRegIsUnsupported := false.B
|
commandRegIsUnsupported := false.B
|
||||||
commandRegBadHaltResume := ~hartHalted
|
commandRegBadHaltResume := ~hartHalted
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user