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
83b60a7b
Commit
83b60a7b
authored
Jul 15, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Generate relay debugging thunks for ARM.
parent
9ff2bbc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
spec32.c
tools/winebuild/spec32.c
+29
-1
No files found.
tools/winebuild/spec32.c
View file @
83b60a7b
...
@@ -83,7 +83,7 @@ int has_relays( DLLSPEC *spec )
...
@@ -83,7 +83,7 @@ int has_relays( DLLSPEC *spec )
{
{
int
i
;
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
++
)
for
(
i
=
spec
->
base
;
i
<=
spec
->
limit
;
i
++
)
{
{
...
@@ -210,6 +210,34 @@ static void output_relay_debug( DLLSPEC *spec )
...
@@ -210,6 +210,34 @@ static void output_relay_debug( DLLSPEC *spec )
}
}
break
;
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
:
case
CPU_x86_64
:
output
(
"
\t
subq $40,%%rsp
\n
"
);
output
(
"
\t
subq $40,%%rsp
\n
"
);
output_cfi
(
".cfi_adjust_cfa_offset 40"
);
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