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
3dea2426
Commit
3dea2426
authored
Mar 18, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Mar 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Mind generic xstate masks in server context conversion.
parent
a9d77d09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
thread.c
dlls/ntdll/unix/thread.c
+9
-2
No files found.
dlls/ntdll/unix/thread.c
View file @
3dea2426
...
...
@@ -236,6 +236,7 @@ static void xstate_to_server( context_t *to, const CONTEXT_EX *xctx )
{
const
XSTATE
*
xs
=
(
const
XSTATE
*
)((
const
char
*
)
xctx
+
xctx
->
XState
.
Offset
);
if
(
xs
->
CompactionMask
&&
!
(
xs
->
CompactionMask
&
4
))
return
;
to
->
flags
|=
SERVER_CTX_YMM_REGISTERS
;
if
(
xs
->
Mask
&
4
)
memcpy
(
&
to
->
ymm
.
regs
.
ymm_high
,
&
xs
->
YmmContext
,
sizeof
(
xs
->
YmmContext
)
);
}
...
...
@@ -613,8 +614,14 @@ static void xstate_from_server( CONTEXT_EX *xctx, const context_t *from )
XSTATE
*
xs
=
(
XSTATE
*
)((
char
*
)
xctx
+
xctx
->
XState
.
Offset
);
unsigned
int
i
;
xs
->
Mask
&=
~
4
;
if
(
xs
->
CompactionMask
)
xs
->
CompactionMask
=
0x8000000000000004
;
xs
->
Mask
&=
~
(
ULONG64
)
4
;
if
(
xs
->
CompactionMask
)
{
xs
->
CompactionMask
&=
~
(
UINT64
)
3
;
if
(
!
(
xs
->
CompactionMask
&
4
))
return
;
}
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
from
->
ymm
.
regs
.
ymm_high
);
i
++
)
{
if
(
!
from
->
ymm
.
regs
.
ymm_high
[
i
].
low
&&
!
from
->
ymm
.
regs
.
ymm_high
[
i
].
high
)
continue
;
...
...
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