diff options
| author | Ajax <commial@gmail.com> | 2015-11-10 14:44:44 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-11-10 14:44:44 +0100 |
| commit | 028525ed9bbd29931bcbae608da6454beaccf737 (patch) | |
| tree | 65cff5b9face8bc390ffe15e937b839e17cd8fbb | |
| parent | 9527fde87a9e8dec9d5ffde761fab247d9f6b4c7 (diff) | |
| download | miasm-028525ed9bbd29931bcbae608da6454beaccf737.tar.gz miasm-028525ed9bbd29931bcbae608da6454beaccf737.zip | |
x86/sem: fix FST affectation source
| -rw-r--r-- | miasm2/arch/x86/sem.py | 4 |
1 files 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) |