about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/sem.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-06-15 18:01:58 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-06-15 18:02:17 +0200
commit25b5a5c194e26d14603f06a3c6372a8b94823495 (patch)
tree189e24d20b91aecb312522ad753a17d7d6480816 /miasm2/arch/x86/sem.py
parentdaeb87008fef7b051b18b46a5b4684334786c214 (diff)
downloadmiasm-25b5a5c194e26d14603f06a3c6372a8b94823495.tar.gz
miasm-25b5a5c194e26d14603f06a3c6372a8b94823495.zip
X86/sem: simplify pop addr
Diffstat (limited to '')
-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 d53677be..5989a0b4 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -776,7 +776,7 @@ def pop_gen(ir, instr, src, size):
         e.append(m2_expr.ExprAff(sp, new_sp))
     # XXX FIX XXX for pop [esp]
     if isinstance(src, m2_expr.ExprMem):
-        src = src.replace_expr({sp: new_sp})
+        src = expr_simp(src.replace_expr({sp: new_sp}))
     result = sp
     if ir.do_stk_segm:
         result = ir.gen_segm_expr(SS, result)