Re: [PATCH 1/5] x86/fpu: Fix math emulation in eager fpu mode

From: Borislav Petkov
Date: Sat Jan 23 2016 - 12:52:37 EST


On Sat, Jan 23, 2016 at 09:40:06AM -0800, Andy Lutomirski wrote:
> I'm confused. I want to make use_eager_fpu() return true always, so
> how would this help? The idea is for FPU emulation to work despite
> being in eager mode.

I mean this:

static __always_inline __pure bool use_eager_fpu(void)
{
if (!static_cpu_has(X86_FEATURE_FPU))
return false;

return static_cpu_has(X86_FEATURE_EAGER_FPU);
}

Although now I realize that returning false is ambiguous here. F'get it.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.