Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
83b60a7b
Commit
83b60a7b
authored
12 years ago
by
André Zwing
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
winebuild: Generate relay debugging thunks for ARM.
parent
9ff2bbc3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/winebuild/spec32.c
+29
-1
29 additions, 1 deletion
tools/winebuild/spec32.c
with
29 additions
and
1 deletion
tools/winebuild/spec32.c
+
29
−
1
View file @
83b60a7b
...
...
@@ -83,7 +83,7 @@ int has_relays( DLLSPEC *spec )
{
int
i
;
if
(
target_cpu
!=
CPU_x86
&&
target_cpu
!=
CPU_x86_64
)
return
0
;
if
(
target_cpu
!=
CPU_x86
&&
target_cpu
!=
CPU_x86_64
&&
target_cpu
!=
CPU_ARM
)
return
0
;
for
(
i
=
spec
->
base
;
i
<=
spec
->
limit
;
i
++
)
{
...
...
@@ -210,6 +210,34 @@ static void output_relay_debug( DLLSPEC *spec )
}
break
;
case
CPU_ARM
:
switch
(
args
)
{
default:
output
(
"
\t
push {r0-r3}
\n
"
);
break
;
case
3
:
output
(
"
\t
push {r0-r2}
\n
"
);
break
;
case
2
:
output
(
"
\t
push {r0-r1}
\n
"
);
break
;
case
1
:
output
(
"
\t
push {r0}
\n
"
);
break
;
case
0
:
break
;
}
output
(
"
\t
push {LR}
\n
"
);
output
(
"
\t
mov r2, SP
\n
"
);
if
(
odp
->
flags
&
FLAG_RET64
)
flags
|=
1
;
output
(
"
\t
mov r1, #%u
\n
"
,
(
flags
<<
24
)
);
if
(
args
)
output
(
"
\t
add r1, #%u
\n
"
,
(
args
<<
16
)
);
if
((
i
-
spec
->
base
)
&
0xf000
)
output
(
"
\t
add r1, #%u
\n
"
,
(
i
-
spec
->
base
)
&
0xf000
);
if
((
i
-
spec
->
base
)
&
0x0f00
)
output
(
"
\t
add r1, #%u
\n
"
,
(
i
-
spec
->
base
)
&
0x0f00
);
if
((
i
-
spec
->
base
)
&
0x00f0
)
output
(
"
\t
add r1, #%u
\n
"
,
(
i
-
spec
->
base
)
&
0x00f0
);
if
((
i
-
spec
->
base
)
&
0x000f
)
output
(
"
\t
add r1, #%u
\n
"
,
(
i
-
spec
->
base
)
&
0x000f
);
output
(
"
\t
ldr r0, [PC, #0]
\n
"
);
output
(
"
\t
mov PC, PC
\n
"
);
output
(
"
\t
.long .L__wine_spec_relay_descr
\n
"
);
output
(
"
\t
ldr r3, [r0, #4]
\n
"
);
output
(
"
\t
blx r3
\n
"
);
output
(
"
\t
pop {r3}
\n
"
);
if
(
args
)
output
(
"
\t
add SP, SP, #%u
\n
"
,
min
(
args
*
4
,
16
)
);
output
(
"
\t
bx r3
\n
"
);
break
;
case
CPU_x86_64
:
output
(
"
\t
subq $40,%%rsp
\n
"
);
output_cfi
(
".cfi_adjust_cfa_offset 40"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment