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

Risc-v: proper management of the return address #939

Merged
merged 2 commits into from
Nov 5, 2024

Commits on Nov 5, 2024

  1. Revert "Add RA to the list of callee_saved registers."

    This reverts commit 7a14e76.
    eponier committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    612805f View commit details
    Browse the repository at this point in the history
  2. RISC-V: proper management of the return address

    On RISC-V, the return address is read from register RA. This was not
    reflected in the model and generated wrong programs.
    
    The RAstack case of return_address_location is given an additional
    optional argument ra_return that specifies what register to use (if any)
    when returning from a function. linearization is adapted to generate the
    right code. reg alloc and merge_varmaps take into account this potential
    new register.
    eponier committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    2d66edd View commit details
    Browse the repository at this point in the history