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
7c9b5251
Commit
7c9b5251
authored
Aug 30, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Use the correct registers for relay debugging of floating point arguments on x86_64.
parent
451d5043
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
relay.c
dlls/ntdll/relay.c
+4
-0
spec32.c
tools/winebuild/spec32.c
+14
-4
No files found.
dlls/ntdll/relay.c
View file @
7c9b5251
...
...
@@ -378,6 +378,10 @@ __ASM_GLOBAL_FUNC( call_entry_point,
"movq 8(%rsp),%rdx
\n\t
"
"movq 16(%rsp),%r8
\n\t
"
"movq 24(%rsp),%r9
\n\t
"
"movq %rcx,%xmm0
\n\t
"
"movq %rdx,%xmm1
\n\t
"
"movq %r8,%xmm2
\n\t
"
"movq %r9,%xmm3
\n\t
"
"callq *%rax
\n\t
"
"leaq -16(%rbp),%rsp
\n\t
"
"popq %rdi
\n\t
"
...
...
tools/winebuild/spec32.c
View file @
7c9b5251
...
...
@@ -58,6 +58,12 @@ static inline int needs_relay( const ORDDEF *odp )
return
1
;
}
static
int
is_float_arg
(
const
ORDDEF
*
odp
,
unsigned
int
arg
)
{
if
(
arg
>=
odp
->
u
.
func
.
nb_args
)
return
0
;
return
(
odp
->
u
.
func
.
args
[
arg
]
==
ARG_FLOAT
||
odp
->
u
.
func
.
args
[
arg
]
==
ARG_DOUBLE
);
}
/* check if dll will output relay thunks */
int
has_relays
(
DLLSPEC
*
spec
)
{
...
...
@@ -189,10 +195,14 @@ static void output_relay_debug( DLLSPEC *spec )
output
(
"
\t
.cfi_startproc
\n
"
);
output
(
"
\t
subq $40,%%rsp
\n
"
);
output
(
"
\t
.cfi_adjust_cfa_offset 40
\n
"
);
output
(
"
\t
movq %%rcx,48(%%rsp)
\n
"
);
output
(
"
\t
movq %%rdx,56(%%rsp)
\n
"
);
output
(
"
\t
movq %%r8,64(%%rsp)
\n
"
);
output
(
"
\t
movq %%r9,72(%%rsp)
\n
"
);
switch
(
args
)
{
default:
output
(
"
\t
movq %%%s,72(%%rsp)
\n
"
,
is_float_arg
(
odp
,
3
)
?
"xmm3"
:
"r9"
);
case
3
:
output
(
"
\t
movq %%%s,64(%%rsp)
\n
"
,
is_float_arg
(
odp
,
2
)
?
"xmm2"
:
"r8"
);
case
2
:
output
(
"
\t
movq %%%s,56(%%rsp)
\n
"
,
is_float_arg
(
odp
,
1
)
?
"xmm1"
:
"rdx"
);
case
1
:
output
(
"
\t
movq %%%s,48(%%rsp)
\n
"
,
is_float_arg
(
odp
,
0
)
?
"xmm0"
:
"rcx"
);
case
0
:
break
;
}
output
(
"
\t
leaq 40(%%rsp),%%r8
\n
"
);
output
(
"
\t
movq $%u,%%rdx
\n
"
,
(
flags
<<
24
)
|
(
args
<<
16
)
|
(
i
-
spec
->
base
)
);
output
(
"
\t
leaq .L__wine_spec_relay_descr(%%rip),%%rcx
\n
"
);
...
...
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