Browse Source

DMI NOP operation should never cause busy status

See RISC-V Debug Specification Version 1.0 [6.1.5. Debug Module
Interface Access (`dmi`, at 0x11)], `op` field description:
> 0 (nop): Ignore data and address.
Don’t send anything over the DMI during Update-DR. This operation should
never affect DMI busy or error status.
pull/2132/head
Evgeniy Naydanov 9 months ago
parent
commit
ca418eb790
  1. 2
      riscv/jtag_dtm.cc

2
riscv/jtag_dtm.cc

@ -199,6 +199,6 @@ void jtag_dtm_t::update_dr()
}
D(fprintf(stderr, "dmi=0x%lx\n", dmi));
rti_remaining = required_rti_cycles;
rti_remaining = op == DMI_OP_NOP ? 0 : required_rti_cycles;
}
}

Loading…
Cancel
Save