Skip to content
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

AppleM1: Support Apple Silicon M1(aarch64). #30

Closed
winlinvip opened this issue Aug 14, 2022 · 1 comment
Closed

AppleM1: Support Apple Silicon M1(aarch64). #30

winlinvip opened this issue Aug 14, 2022 · 1 comment
Assignees

Comments

@winlinvip
Copy link
Member

winlinvip commented Aug 14, 2022

Support Apple M1(aarch64) CPU for MacPro, while the OS is OSX/Darwin.

Instructions

  • BL: Branch with Link branches to a PC-relative offset, setting the register X30 to PC+4. It provides a hint that this is a subroutine call.
  • RET: Return from subroutine, branches unconditionally to an address in a register, with a hint that this is a subroutine return.
  • BR: Branch to register, branches unconditionally to an address in a register, with a hint that this is not a subroutine return.

Note: BL会改变LR(X30)的值为PC+4,也就是函数的返回地址。BR和RET不会改变,返回时调用这个指令。

Links

@winlinvip
Copy link
Member Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant