From 4fec84b86abd272e2681dfccd90dcdd947478c04 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Tue, 5 Jan 2016 16:09:04 -0700 Subject: [PATCH] Do not randomize the FPU control word in x87_read_environment. Looks like a typo: eax not replaced by rdi. --- src/microcode/cmpauxmd/x86-64.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microcode/cmpauxmd/x86-64.m4 b/src/microcode/cmpauxmd/x86-64.m4 index fb2929452..04993adeb 100644 --- a/src/microcode/cmpauxmd/x86-64.m4 +++ b/src/microcode/cmpauxmd/x86-64.m4 @@ -999,7 +999,7 @@ define_c_label(x87_read_environment) fnstenv IND(REG(rdi)) # fnstenv masks all exceptions (go figure), so we must load # the control word back in order to undo that. - fldcw IND(REG(eax)) + fldcw IND(REG(rdi)) ret define_c_label(x87_write_environment) -- 2.25.1