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
b4172c08
Commit
b4172c08
authored
Dec 03, 2015
by
Qian Hong
Committed by
Alexandre Julliard
Dec 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Restore old value in a more context independent way.
Signed-off-by:
Qian Hong
<
qhong@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
10d080aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
exception.c
dlls/ntdll/tests/exception.c
+2
-1
No files found.
dlls/ntdll/tests/exception.c
View file @
b4172c08
...
...
@@ -1041,6 +1041,7 @@ static DWORD simd_fault_handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATION_R
static
const
BYTE
simd_exception_test
[]
=
{
0x83
,
0xec
,
0x4
,
/* sub $0x4, %esp */
0x0f
,
0xae
,
0x1c
,
0x24
,
/* stmxcsr (%esp) */
0x8b
,
0x04
,
0x24
,
/* mov (%esp),%eax * store mxcsr */
0x66
,
0x81
,
0x24
,
0x24
,
0xff
,
0xfd
,
/* andw $0xfdff,(%esp) * enable divide by */
0x0f
,
0xae
,
0x14
,
0x24
,
/* ldmxcsr (%esp) * zero exceptions */
0x6a
,
0x01
,
/* push $0x1 */
...
...
@@ -1051,7 +1052,7 @@ static const BYTE simd_exception_test[] = {
0x0f
,
0x57
,
0xc0
,
/* xorps %xmm0,%xmm0 * clear divisor */
0x0f
,
0x5e
,
0xc8
,
/* divps %xmm0,%xmm1 * generate fault */
0x83
,
0xc4
,
0x10
,
/* add $0x10,%esp */
0x
66
,
0x81
,
0x0c
,
0x24
,
0x00
,
0x02
,
/* orw $0x200,(%esp) * disable exceptions
*/
0x
89
,
0x04
,
0x24
,
/* mov %eax,(%esp) * restore to old mxcsr
*/
0x0f
,
0xae
,
0x14
,
0x24
,
/* ldmxcsr (%esp) */
0x83
,
0xc4
,
0x04
,
/* add $0x4,%esp */
0xc3
,
/* ret */
...
...
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