8000 src: asm: Rename lr & fp registers to their x-equivalents by fredldotme · Pull Request #426 · ptitSeb/box64 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

src: asm: Rename lr & fp registers to their x-equivalents #426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dynarec/arm64/arm64_epilog.S
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ arm64_epilog:
ldp d12, d13, [sp, (8 *14)]
ldp d14, d15, [sp, (8 *16)]
add sp, sp, (8 * 18)
ldp lr, fp, [sp], 16 // saved lr
ldp x30, x29, [sp], 16 // saved lr
//end, return...
ret

Expand All @@ -49,6 +49,6 @@ arm64_epilog_fast:
ldp d12, d13, [sp, (8 *14)]
ldp d14, d15, [sp, (8 *16)]
add sp, sp, (8 * 18)
ldp lr, fp, [sp], 16 // saved lr
ldp x30, x29, [sp], 16 // saved lr
//end, return...
ret
2 changes: 1 addition & 1 deletion src/dynarec/arm64/arm64_next.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ arm64_next:
stp x16, x17, [sp, (8 * 8)]
stp x18, x27, [sp, (8 * 10)] // also save x27(rip) to allow change in LinkNext

mov x2, lr // "from" is in lr, so put in x2
mov x2, x30 // "from" is in lr, so put in x2
add x3, sp, 8*11 // x3 is address to change rip
// call the function
bl LinkNext
Expand Down
2 changes: 1 addition & 1 deletion src/dynarec/arm64/arm64_prolog.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.global arm64_prolog
arm64_prolog:
//save all 18 used register
stp lr, fp, [sp, -16]! // save lr
stp x30, x29, [sp, -16]! // save lr
sub sp, sp, (8 * 18)
stp x19, x20, [sp, (8 * 0)]
stp x21, x22, [sp, (8 * 2)]
Expand Down
0