about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2016-04-28 12:29:30 +0200
committerserpilliere <serpilliere@users.noreply.github.com>2016-04-28 12:29:30 +0200
commit14f67c6dfabb7f3d77920278191ae60ae2a6f08b (patch)
tree396b044c0e361af96b9bf03d6594bf6485b95ffb
parentd84571ec5e35fb4ea7e149658088f5bc15888b0a (diff)
parentf52321c911b7fee47880c9a12d80be6d1f2ff2b7 (diff)
downloadmiasm-14f67c6dfabb7f3d77920278191ae60ae2a6f08b.tar.gz
miasm-14f67c6dfabb7f3d77920278191ae60ae2a6f08b.zip
Merge pull request #365 from itsacoderepo/fixsem
x86 sem: Fixed missing size in idiv
-rw-r--r--miasm2/arch/x86/sem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index e843cd2b..eb067c55 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -1448,7 +1448,7 @@ def idiv(ir, instr, a):
 
     if size == 8:
         b = mRAX[instr.mode][:16]
-    elif size in [16, 32]:
+    elif size in [16, 32, 64]:
         s1, s2 = mRDX[size], mRAX[size]
         b = m2_expr.ExprCompose([(s2, 0, size),
                                  (s1, size, size * 2)])