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

Implement Replace::Replace properly for aarch64 #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 20, 2020

  1. Implement Replace::Replace properly for aarch64

    Add a separate implementation for aarch64 which boils down to
    
        ldr x17, =0x1122334455667788
        br x17
    
    The `x17` register is used as it's allowed to be modified during
    function call and doesn't require saving. Old approach under `SOME_ARM`
    ifdef that doesn't require changing any registers isn't possible since
    the `pc` register is no longer directly accessible.
    
    Tested with qemu-aarch64 user mode emulation.
    mikedld committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    0a02858 View commit details
    Browse the repository at this point in the history