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
85147ee9
Commit
85147ee9
authored
Jun 30, 2003
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PF_PAE_ENABLED and PF_XMMI64_INSTRUCTIONS defines.
Detect them and 3DNOW and XMMI_INSTRUCTIONS for Linux.
parent
ff4f1278
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
winnt.h
include/winnt.h
+3
-1
cpu.c
misc/cpu.c
+11
-1
No files found.
include/winnt.h
View file @
85147ee9
...
...
@@ -506,8 +506,10 @@ typedef struct _SINGLE_LIST_ENTRY {
#define PF_PPC_MOVEMEM_64BIT_OK 4
#define PF_ALPHA_BYTE_INSTRUCTIONS 5
#define PF_XMMI_INSTRUCTIONS_AVAILABLE 6
#define PF_
AMD3D
_INSTRUCTIONS_AVAILABLE 7
#define PF_
3DNOW
_INSTRUCTIONS_AVAILABLE 7
#define PF_RDTSC_INSTRUCTION_AVAILABLE 8
#define PF_PAE_ENABLED 9
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10
/* Execution state flags */
...
...
misc/cpu.c
View file @
85147ee9
...
...
@@ -315,6 +315,16 @@ VOID WINAPI GetSystemInfo(
PF
[
PF_MMX_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
if
(
strstr
(
value
,
"tsc"
))
PF
[
PF_RDTSC_INSTRUCTION_AVAILABLE
]
=
TRUE
;
if
(
strstr
(
value
,
"3dnow"
))
PF
[
PF_3DNOW_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
/* This will also catch sse2, but we have sse itself
* if we have sse2, so no problem */
if
(
strstr
(
value
,
"sse"
))
PF
[
PF_XMMI_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
if
(
strstr
(
value
,
"sse2"
))
PF
[
PF_XMMI64_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
if
(
strstr
(
value
,
"pae"
))
PF
[
PF_PAE_ENABLED
]
=
TRUE
;
}
}
...
...
@@ -455,7 +465,7 @@ VOID WINAPI GetSystemInfo(
do_cpuid
(
0x80000000
,
regs
);
/* get vendor cpuid level */
if
(
regs
[
0
]
>=
0x80000001
)
{
do_cpuid
(
0x80000001
,
regs2
);
/* get vendor features */
PF
[
PF_
AMD3D
_INSTRUCTIONS_AVAILABLE
]
=
PF
[
PF_
3DNOW
_INSTRUCTIONS_AVAILABLE
]
=
(
regs2
[
3
]
&
(
1
<<
31
))
>>
31
;
}
}
...
...
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