X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=tools%2Fxsvf_tools%2Fsvf2xsvf.py;h=113e0a61a39fc736b164345fac918e83a9fef7e6;hb=ec93209f51afc09e273a4742dc0b5f2cefc15e76;hp=bf2a12099f42dda152c1a24ca8cee419201ca63d;hpb=4dcad0894077c903a8b94d3b2cb0feb8c9c8b224;p=openocd.git diff --git a/tools/xsvf_tools/svf2xsvf.py b/tools/xsvf_tools/svf2xsvf.py index bf2a12099f..113e0a61a3 100644 --- a/tools/xsvf_tools/svf2xsvf.py +++ b/tools/xsvf_tools/svf2xsvf.py @@ -704,6 +704,8 @@ try: nextTok() if tokVal != ';': raise ParseError( tokLn, tokVal, "Expecting ';' after TRST trst_mode") + if doCOMMENTs: + writeComment( output, tokLn, 'TRST %s' % trst_mode ) obuf = bytearray( 2 ) obuf[0] = XTRST obuf[1] = trst_mode_allowed.index( trst_mode ) # use the index as the binary argument to XTRST opcode