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
d0950169
Commit
d0950169
authored
Mar 21, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Always use a .seh handler in cpu_simulate().
parent
d2c0efe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
24 deletions
+1
-24
syscall.c
dlls/wow64/syscall.c
+1
-24
No files found.
dlls/wow64/syscall.c
View file @
d0950169
...
@@ -999,8 +999,7 @@ __ASM_GLOBAL_FUNC( cpu_simulate_handler,
...
@@ -999,8 +999,7 @@ __ASM_GLOBAL_FUNC( cpu_simulate_handler,
"mov x19, x2
\n\t
"
/* record */
"mov x19, x2
\n\t
"
/* record */
"bl RtlUnwind
\n\t
"
"bl RtlUnwind
\n\t
"
"brk #1"
)
"brk #1"
)
#else
#elif defined __WINE_PE_BUILD
extern
void
DECLSPEC_NORETURN
cpu_simulate
(
void
(
*
func
)(
void
)
);
extern
void
DECLSPEC_NORETURN
cpu_simulate
(
void
(
*
func
)(
void
)
);
__ASM_GLOBAL_FUNC
(
cpu_simulate
,
__ASM_GLOBAL_FUNC
(
cpu_simulate
,
"subq $0x28, %rsp
\n\t
"
"subq $0x28, %rsp
\n\t
"
...
@@ -1026,28 +1025,6 @@ __ASM_GLOBAL_FUNC( cpu_simulate_handler,
...
@@ -1026,28 +1025,6 @@ __ASM_GLOBAL_FUNC( cpu_simulate_handler,
"movq %rsi,%r8
\n\t
"
/* record */
"movq %rsi,%r8
\n\t
"
/* record */
"call RtlUnwind
\n\t
"
"call RtlUnwind
\n\t
"
"int3"
)
"int3"
)
#else
static
LONG
CALLBACK
simulate_filter
(
EXCEPTION_POINTERS
*
ptrs
)
{
Wow64PassExceptionToGuest
(
ptrs
);
return
EXCEPTION_EXECUTE_HANDLER
;
}
static
void
cpu_simulate
(
void
(
*
func
)(
void
)
)
{
for
(;;)
{
__TRY
{
func
();
}
__EXCEPT
(
simulate_filter
)
{
/* restart simulation loop */
}
__ENDTRY
}
}
#endif
#endif
...
...
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