소스 검색

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 )