Fix capstone MOV issue (#365)

* add temporary workaround for capstone bug

* rename cs to rest
This commit is contained in:
JP Smith 2017-06-29 12:02:31 -04:00 committed by GitHub
parent 7c00b44675
commit fcf0024d5d

View File

@ -2463,7 +2463,7 @@ class X86Cpu(Cpu):
@instruction @instruction
def MOV(cpu, dest, src): def MOV(cpu, dest, src, *rest): # Fake argument to work around capstone issue # 950
''' '''
Move. Move.
@ -2477,6 +2477,7 @@ class X86Cpu(Cpu):
:param cpu: current CPU. :param cpu: current CPU.
:param dest: destination operand. :param dest: destination operand.
:param src: source operand. :param src: source operand.
:param rest: workaround for a capstone bug, should never be provided
''' '''
dest.write(src.read()) dest.write(src.read())