From a25a5f76af462fe2d4372a47ee760d6ffde8b2a1 Mon Sep 17 00:00:00 2001 From: Juan Manuel Cruz Date: Sat, 9 May 2015 21:30:47 -0500 Subject: [PATCH] Kconfig: Update on arch x86 Kconfig symbols. This commit add the Kconfig symbol SSE_FP_MATH. Change-Id: I565a5a4665edbe72b40eb1e48a3279af98523034 Signed-off-by: Juan Manuel Cruz --- arch/x86/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index e70aa2aa4bb..6b0b52918d1 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -27,6 +27,23 @@ config SSE Disabling this option means that no task or fiber may use SSEx instructions; any such use will result in undefined behavior. +config SSE_FP_MATH + bool + prompt "Compiler-generated SSEx instructions" if FP_SHARING + depends on SSE && ISA_IA32 + default n if FP_SHARING + default y if !FP_SHARING + help + This option allows the compiler to generate SSEx instructions for + performing floating point math. This can greatly improve performance + when exactly the same operations are to be performed on multiple + data objects; however, it can also significantly reduce performance + when pre-emptive task switches occur because of the larger register + set that must be saved and restored. + + Disabling this option means that the compiler utilizes only the + x87 instruction set for floating point operations. + config FP_SHARING bool prompt "Floating point resource sharing" if !ENHANCED_SECURITY