André Hentschel : ntdll: Detect more processor features.
Alexandre Julliard
julliard at winehq.org
Thu Nov 4 12:52:49 CDT 2010
Module: wine
Branch: master
Commit: 3151ef0d069798c4299d3ff91393f712639fbcc5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3151ef0d069798c4299d3ff91393f712639fbcc5
Author: André Hentschel <nerv at dawncrow.de>
Date: Wed Nov 3 18:53:45 2010 +0100
ntdll: Detect more processor features.
---
dlls/ntdll/nt.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index b323c23..13beb74 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1049,6 +1049,8 @@ void fill_cpu_info(void)
{
if (strstr(value, "cx8"))
user_shared_data->ProcessorFeatures[PF_COMPARE_EXCHANGE_DOUBLE] = TRUE;
+ if (strstr(value, "cx16"))
+ user_shared_data->ProcessorFeatures[PF_COMPARE_EXCHANGE128] = TRUE;
if (strstr(value, "mmx"))
user_shared_data->ProcessorFeatures[PF_MMX_INSTRUCTIONS_AVAILABLE] = TRUE;
if (strstr(value, "tsc"))
@@ -1061,6 +1063,8 @@ void fill_cpu_info(void)
user_shared_data->ProcessorFeatures[PF_XMMI_INSTRUCTIONS_AVAILABLE] = TRUE;
if (strstr(value, "sse2"))
user_shared_data->ProcessorFeatures[PF_XMMI64_INSTRUCTIONS_AVAILABLE] = TRUE;
+ if (strstr(value, "pni"))
+ user_shared_data->ProcessorFeatures[PF_SSE3_INSTRUCTIONS_AVAILABLE] = TRUE;
if (strstr(value, "pae"))
user_shared_data->ProcessorFeatures[PF_PAE_ENABLED] = TRUE;
if (strstr(value, "ht"))
@@ -1275,11 +1279,13 @@ void fill_cpu_info(void)
{
cached_sci.Revision |= value;
if (strstr(buffer, "CX8")) user_shared_data->ProcessorFeatures[PF_COMPARE_EXCHANGE_DOUBLE] = TRUE;
+ if (strstr(buffer, "CX16")) user_shared_data->ProcessorFeatures[PF_COMPARE_EXCHANGE128] = TRUE;
if (strstr(buffer, "MMX")) user_shared_data->ProcessorFeatures[PF_MMX_INSTRUCTIONS_AVAILABLE] = TRUE;
if (strstr(buffer, "TSC")) user_shared_data->ProcessorFeatures[PF_RDTSC_INSTRUCTION_AVAILABLE] = TRUE;
if (strstr(buffer, "3DNOW")) user_shared_data->ProcessorFeatures[PF_3DNOW_INSTRUCTIONS_AVAILABLE] = TRUE;
if (strstr(buffer, "SSE")) user_shared_data->ProcessorFeatures[PF_XMMI_INSTRUCTIONS_AVAILABLE] = TRUE;
if (strstr(buffer, "SSE2")) user_shared_data->ProcessorFeatures[PF_XMMI64_INSTRUCTIONS_AVAILABLE] = TRUE;
+ if (strstr(buffer, "SSE3")) user_shared_data->ProcessorFeatures[PF_SSE3_INSTRUCTIONS_AVAILABLE] = TRUE;
if (strstr(buffer, "PAE")) user_shared_data->ProcessorFeatures[PF_PAE_ENABLED] = TRUE;
}
break; /* CPU_TYPE_I386 */
More information about the wine-cvs
mailing list