Skip to content

runtime, cmd/internal/obj/riscv: enable framepointer on riscv64 - #164

Open
lxq015 wants to merge 1 commit into
go1.26.5-zte-devfrom
fp
Open

lxq015 wants to merge 1 commit into
go1.26.5-zte-devfrom
fp

Conversation

@lxq015

@lxq015 lxq015 commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

This CL implements hardware frame pointer support for riscv64.
https://go-review.googlesource.com/c/go/+/753022

The stack layout is similar to arm64, but with the following specifics:

  • The FP register points to SP+8.
  • The return address (LR) is stored at SP.
  • The caller's FP is stored at SP-8.

Change-Id: I3bc7af2abb024ea0b0e3432ed517641c6707f7a2

This CL implements hardware frame pointer support for riscv64.

The stack layout is similar to arm64, but with the following specifics:
- The FP register points to SP+8.
- The return address (LR) is stored at SP.
- The caller's FP is stored at SP-8.

Change-Id: I3bc7af2abb024ea0b0e3432ed517641c6707f7a2
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

Successfully merging this pull request may close these issues.

2 participants