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
eed3bb6d
Commit
eed3bb6d
authored
Jun 12, 2017
by
André Hentschel
Committed by
Alexandre Julliard
Jun 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Emit relay debugging thunks for ARM64.
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a726343f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
spec32.c
tools/winebuild/spec32.c
+38
-1
No files found.
tools/winebuild/spec32.c
View file @
eed3bb6d
...
...
@@ -84,7 +84,9 @@ static int has_relays( DLLSPEC *spec )
{
int
i
;
if
(
target_cpu
!=
CPU_x86
&&
target_cpu
!=
CPU_x86_64
&&
target_cpu
!=
CPU_ARM
)
return
0
;
if
(
target_cpu
!=
CPU_x86
&&
target_cpu
!=
CPU_x86_64
&&
target_cpu
!=
CPU_ARM
&&
target_cpu
!=
CPU_ARM64
)
return
0
;
for
(
i
=
spec
->
base
;
i
<=
spec
->
limit
;
i
++
)
{
...
...
@@ -242,6 +244,41 @@ static void output_relay_debug( DLLSPEC *spec )
break
;
}
case
CPU_ARM64
:
switch
(
args
)
{
default:
case
8
:
case
7
:
output
(
"
\t
stp x6, x7, [SP,#-16]!
\n
"
);
/* fall through */
case
6
:
case
5
:
output
(
"
\t
stp x4, x5, [SP,#-16]!
\n
"
);
/* fall through */
case
4
:
case
3
:
output
(
"
\t
stp x2, x3, [SP,#-16]!
\n
"
);
/* fall through */
case
2
:
case
1
:
output
(
"
\t
stp x0, x1, [SP,#-16]!
\n
"
);
/* fall through */
case
0
:
break
;
}
output
(
"
\t
stp x29, x30, [SP,#-16]!
\n
"
);
output
(
"
\t
stp x8, x9, [SP,#-16]!
\n
"
);
output
(
"
\t
mov x2, SP
\n
"
);
if
(
odp
->
flags
&
FLAG_RET64
)
flags
|=
1
;
output
(
"
\t
mov w1, #%u
\n
"
,
(
flags
<<
24
)
);
if
(
args
)
output
(
"
\t
add w1, w1, #%u
\n
"
,
(
args
<<
16
)
);
if
(
i
-
spec
->
base
)
output
(
"
\t
add w1, w1, #%u
\n
"
,
i
-
spec
->
base
);
output
(
"
\t
ldr x0, 1f
\n
"
);
output
(
"
\t
ldr x3, [x0, #8]
\n
"
);
output
(
"
\t
blr x3
\n
"
);
output
(
"
\t
add SP, SP, #16
\n
"
);
output
(
"
\t
ldp x29, x30, [SP], #16
\n
"
);
if
(
args
)
output
(
"
\t
add SP, SP, #%u
\n
"
,
8
*
((
min
(
args
,
8
)
+
1
)
&
0xe
)
);
output
(
"
\t
ret
\n
"
);
output
(
"
\t
1: .quad .L__wine_spec_relay_descr
\n
"
);
break
;
case
CPU_x86_64
:
output
(
"
\t
subq $40,%%rsp
\n
"
);
output_cfi
(
".cfi_adjust_cfa_offset 40"
);
...
...
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