about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/arch.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2016-09-07 21:56:08 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2016-09-07 21:56:08 +0200
commit1c8f058dd74b04bb407962780b3e78cd120bfdd1 (patch)
tree0ba5c8ea598a18aa0e2019803e202a2d6a99da25 /miasm2/arch/x86/arch.py
parent292a5d639cdb64b0b2eb1d855cf93dc4d3c4d1d9 (diff)
downloadmiasm-1c8f058dd74b04bb407962780b3e78cd120bfdd1.tar.gz
miasm-1c8f058dd74b04bb407962780b3e78cd120bfdd1.zip
Arch/x86: fix sldt
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/arch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index ff7dc1ee..28cac255 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -3879,7 +3879,7 @@ addop("shrd", [bs8(0x0f), bs8(0xac)] +
 addop("shrd", [bs8(0x0f), bs8(0xad)] +
       rmmod(rmreg) + [d_cl], [rm_arg, rmreg, d_cl])
 addop("sidt", [bs8(0x0f), bs8(0x01)] + rmmod(d1, modrm=mod_mem))
-addop("sldt", [bs8(0x0f), bs8(0x00)] + rmmod(d0, modrm=mod_mem))
+addop("sldt", [bs8(0x0f), bs8(0x00)] + rmmod(d0, rm_arg_x=rm_arg_reg_m16))
 addop("smsw", [bs8(0x0f), bs8(0x01)] + rmmod(d4))
 addop("stc", [bs8(0xf9)])
 addop("std", [bs8(0xfd)])