mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
Fix JIT linkage on ARM64 Macs (#890)
This commit is contained in:
parent
b00cd8bdee
commit
82af9de9b6
@ -8,8 +8,13 @@
|
|||||||
|
|
||||||
.p2align 4,,15
|
.p2align 4,,15
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
.global _ARM_Dispatch
|
||||||
|
_ARM_Dispatch:
|
||||||
|
#else
|
||||||
.global ARM_Dispatch
|
.global ARM_Dispatch
|
||||||
ARM_Dispatch:
|
ARM_Dispatch:
|
||||||
|
#endif
|
||||||
stp x19, x20, [sp, #-96]!
|
stp x19, x20, [sp, #-96]!
|
||||||
stp x21, x22, [sp, #16]
|
stp x21, x22, [sp, #16]
|
||||||
stp x23, x24, [sp, #32]
|
stp x23, x24, [sp, #32]
|
||||||
@ -25,8 +30,13 @@ ARM_Dispatch:
|
|||||||
|
|
||||||
.p2align 4,,15
|
.p2align 4,,15
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
.global _ARM_Ret
|
||||||
|
_ARM_Ret:
|
||||||
|
#else
|
||||||
.global ARM_Ret
|
.global ARM_Ret
|
||||||
ARM_Ret:
|
ARM_Ret:
|
||||||
|
#endif
|
||||||
str RCycles, [RCPU, ARM_Cycles_offset]
|
str RCycles, [RCPU, ARM_Cycles_offset]
|
||||||
str RCPSR, [RCPU, ARM_CPSR_offset]
|
str RCPSR, [RCPU, ARM_CPSR_offset]
|
||||||
|
|
||||||
@ -65,4 +75,4 @@ ARM_RestoreContext:
|
|||||||
ldp x17, x18, [sp, #248]
|
ldp x17, x18, [sp, #248]
|
||||||
mov sp, x17
|
mov sp, x17
|
||||||
|
|
||||||
br x18
|
br x18
|
||||||
|
Loading…
Reference in New Issue
Block a user