From d4f805ed81b3c10c6a7ceca0db60f1f6b4e7a63b Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 9 Feb 2015 15:56:01 +0100 Subject: Arch/X86: fix fsntenv in 64bit --- miasm2/arch/x86/sem.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'miasm2/arch/x86/sem.py') diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 22e8c276..fefd484d 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -2003,6 +2003,9 @@ def fnstenv(ir, instr, a): ]) s = instr.mode + # The behaviour in 64bit is identical to 64 bit + # This will truncate addresses + s = min(32, s) ad = ExprMem(a.arg, size=16) e.append(ExprAff(ad, float_control)) ad = ExprMem(a.arg + ExprInt_from(a.arg, s / 8 * 1), size=16) -- cgit 1.4.1