risc-v

Definition

ra ( RISC-V)

ra is the RISC-V integer register x1, designated as the return address register. It holds the program counter (PC) value to which control should return after a function call completes.

The register is automatically written by the jal and jalr instructions when they save the return address, and the ret pseudoinstruction (encoded as jalr x0, x1, 0) reads from ra to perform the return.