From 1a904654f1d7e6ea5f43f8d0039fadebd9c1aa88 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 8 Jun 2017 13:05:01 -0700 Subject: [PATCH] Reset to "success" instead of "error." OpenOCD actually checks this initial value now, and there's no reason for it to indicate error. --- riscv/jtag_dtm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/jtag_dtm.cc b/riscv/jtag_dtm.cc index cd3f3ee..3a0e8d2 100644 --- a/riscv/jtag_dtm.cc +++ b/riscv/jtag_dtm.cc @@ -41,7 +41,7 @@ jtag_dtm_t::jtag_dtm_t(debug_module_t *dm) : dm(dm), _tck(false), _tms(false), _tdi(false), _tdo(false), dtmcontrol((abits << DTM_DTMCS_ABITS_OFFSET) | 1), - dmi(DMI_OP_STATUS_FAILED << DTM_DMI_OP_OFFSET), + dmi(DMI_OP_STATUS_SUCCESS << DTM_DMI_OP_OFFSET), _state(TEST_LOGIC_RESET) { } -- 2.30.2