debug: Properly consider 'transfer' bit
This commit is contained in:
parent
2dc4be6294
commit
79477fbea6
@ -834,7 +834,7 @@ class TLDebugModuleInner(device: Device, getNComponents: () => Int)(implicit p:
|
|||||||
nop.imm := 0.U
|
nop.imm := 0.U
|
||||||
|
|
||||||
when (goAbstract) {
|
when (goAbstract) {
|
||||||
abstractGeneratedMem(0) := Mux(/*TODO: accessRegisterCommandReg.transfer*/true.B,
|
abstractGeneratedMem(0) := Mux(accessRegisterCommandReg.transfer,
|
||||||
Mux(accessRegisterCommandReg.write,
|
Mux(accessRegisterCommandReg.write,
|
||||||
// To write a register, we need to do LW.
|
// To write a register, we need to do LW.
|
||||||
abstractGeneratedI.asUInt(),
|
abstractGeneratedI.asUInt(),
|
||||||
@ -915,7 +915,7 @@ 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) {
|
when (commandRegIsAccessRegister && accessRegisterCommandReg.transfer) {
|
||||||
when ((accessRegisterCommandReg.regno >= 0x1000.U && accessRegisterCommandReg.regno <= 0x101F.U)){
|
when ((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