reflect: correct riscv64 assembly

R0 is not a thing in riscv64 assembly - use ZERO (rather than X0) since
the rest of this currently uses ABI names.

Updates #27532

Change-Id: I28fb68e9f80d05231a07c5921e7062777234e2c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/215437
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Joel Sing 2020-01-20 02:00:44 +11:00
parent 8e0be05ec7
commit 02816a2cad
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$32
MOV T0, 16(SP)
ADD $32, SP, T1
MOV T1, 24(SP)
MOVB R0, 32(SP)
MOVB ZERO, 32(SP)
CALL ·callReflect(SB)
RET
@ -31,6 +31,6 @@ TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$32
MOV T0, 16(SP)
ADD $32, SP, T1
MOV T1, 24(SP)
MOVB R0, 32(SP)
MOVB ZERO, 32(SP)
CALL ·callMethod(SB)
RET