Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3151ef0d
Commit
3151ef0d
authored
Nov 03, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Nov 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Detect more processor features.
parent
0e524aaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
nt.c
dlls/ntdll/nt.c
+6
-0
No files found.
dlls/ntdll/nt.c
View file @
3151ef0d
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment