浏览代码

svf2xsvf: at least libxsvf seems to move the machine before XSDRE

The XSDRE opcode entry state seems confusing, but at least the libxsvf
state machine seems to move to the DRCAPTURE state just as it would
before an XSDR opcode. Go with that for now, rather than using XSTATE
to do so - it could invoke other undefined behavior.
H. Peter Anvin 3 年之前
父节点
当前提交
9690b5bbb1
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      tools/svf2xsvf.py

+ 0 - 5
tools/svf2xsvf.py

@@ -497,11 +497,6 @@ try:
                         struct.pack_into( ">i", obuf, 0, xsdrsize )  # big endian 4 byte int to obuf
                         output.write( obuf )
 
-                    obuf = bytearray(2)
-                    obuf[0] = XSTATE
-                    obuf[1] = DRCAPTURE
-                    output.write( obuf )
-                        
                     cmdbuf[0] = XSDRE
                     output.write( cmdbuf )
                     obuf = makeXSVFbytes( tdi )