RISC-V GP Registers

Posted by:

|

On:

|

,

I

RegisterABI NameDescriptionSaved by Calle-
x0zerohardwired zero
x1rareturn address-R
x2spstack pointer-E
x3gpglobal pointer
x4tpthread pointer
x5t0temporary register 0-R
x6t1temporary register 1-R
x7t2temporary register 2-R
x8s0 / fpsaved register 0 / frame pointer-E
x9s1saved register 1-E
x10a0function argument 0 / return value 0-R
x11a1function argument 1 / return value 1-R
x12a2function argument 2-R
x13a3function argument 3-R
x14a4function argument 4-R
x15a5function argument 5-R
x16a6function argument 6-R
x17a7function argument 7-R
x18s2saved register 2-E
x19s3saved register 3-E
x20s4saved register 4-E
x21s5saved register 5-E
x22s6saved register 6-E
x23s7saved register 7-E
x24s8saved register 8-E
x25s9saved register 9-E
x26s10saved register 10-E
x27s11saved register 11-E
x28t3temporary register 3-R
x29t4temporary register 4-R
x30t5temporary register 5-R
x31t6temporary register 6-R
RISCV GP Register