about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/arch.py
diff options
context:
space:
mode:
authorserpilliere <fabrice.desclaux@cea.fr>2015-07-10 19:52:43 +0200
committerserpilliere <fabrice.desclaux@cea.fr>2015-07-10 19:52:43 +0200
commitcd94fc882dcf9fe9e926be9da531f46094e23a18 (patch)
treea12077c88bb6ceedea85b29d1e4e92fb257fa5b4 /miasm2/arch/x86/arch.py
parent35852d91259bcac6f15c5db4edf2ccf50f00f444 (diff)
downloadmiasm-cd94fc882dcf9fe9e926be9da531f46094e23a18.tar.gz
miasm-cd94fc882dcf9fe9e926be9da531f46094e23a18.zip
x86: avoid load effective reg
Diffstat (limited to 'miasm2/arch/x86/arch.py')
-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 f168d9cb..33fd428f 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -791,7 +791,7 @@ class mn_x86(cls_mn):
                 m = a.expr
                 a.expr = ExprMem(
                     ExprOp('segm', enc2segm[self.g2.value], m.arg), m.size)
-        if self.name == 'LEA':
+        if self.name in ['LEA', 'LDS', 'LES', 'LFS', 'LGS', 'LSS']:
             if not isinstance(self.args[1].expr, ExprMem):
                 return None
         return self