From 028525ed9bbd29931bcbae608da6454beaccf737 Mon Sep 17 00:00:00 2001 From: Ajax Date: Tue, 10 Nov 2015 14:44:44 +0100 Subject: x86/sem: fix FST affectation source --- miasm2/arch/x86/sem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 41a2c229..1c83fd02 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -1971,9 +1971,9 @@ def fst(ir, instr, a): if isinstance(a, m2_expr.ExprMem): if a.size > 64: raise NotImplementedError('float to long') - src = m2_expr.ExprOp('double_to_mem_%.2d' % a.size, a) + src = m2_expr.ExprOp('double_to_mem_%.2d' % a.size, float_st0) else: - src = a + src = float_st0 e.append(m2_expr.ExprAff(a, src)) e += set_float_cs_eip(instr) -- cgit 1.4.1