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
700eec96
Commit
700eec96
authored
Jul 09, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Report 3dnow and sse features if the processor supports them.
parent
ec8ec0fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
nt.c
dlls/ntdll/nt.c
+10
-1
No files found.
dlls/ntdll/nt.c
View file @
700eec96
...
...
@@ -922,7 +922,7 @@ void fill_cpu_info(void)
#endif
cached_sci
.
Revision
=
0
;
cached_sci
.
Reserved
=
0
;
cached_sci
.
FeatureSet
=
0x1fff
;
/* FIXME: set some sensible defaults out of ProcessFeatures[] */
cached_sci
.
FeatureSet
=
0x1fff
;
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
=
1
;
...
...
@@ -1049,13 +1049,22 @@ void fill_cpu_info(void)
if
(
strstr
(
value
,
"tsc"
))
user_shared_data
->
ProcessorFeatures
[
PF_RDTSC_INSTRUCTION_AVAILABLE
]
=
TRUE
;
if
(
strstr
(
value
,
"3dnow"
))
{
user_shared_data
->
ProcessorFeatures
[
PF_3DNOW_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
cached_sci
.
FeatureSet
|=
CPU_FEATURE_3DNOW
;
}
/* This will also catch sse2, but we have sse itself
* if we have sse2, so no problem */
if
(
strstr
(
value
,
"sse"
))
{
user_shared_data
->
ProcessorFeatures
[
PF_XMMI_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
cached_sci
.
FeatureSet
|=
CPU_FEATURE_SSE
;
}
if
(
strstr
(
value
,
"sse2"
))
{
user_shared_data
->
ProcessorFeatures
[
PF_XMMI64_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
cached_sci
.
FeatureSet
|=
CPU_FEATURE_SSE2
;
}
if
(
strstr
(
value
,
"pni"
))
user_shared_data
->
ProcessorFeatures
[
PF_SSE3_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
if
(
strstr
(
value
,
"pae"
))
...
...
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