fix(riscv64): accept the g spelling of the goroutine register
Assisted-by: GLM 5.3
This commit is contained in:
Vendored
+2
-2
@@ -22,9 +22,9 @@ TEXT ·dirtyFP(SB), NOSPLIT, $0-16
|
||||
RET
|
||||
|
||||
// func dirtyG(a int64) int64
|
||||
// Deliberately clobbers R28, the goroutine pointer (a serious ABI violation).
|
||||
// Deliberately clobbers g, the goroutine pointer (R28; a serious ABI violation).
|
||||
TEXT ·dirtyG(SB), NOSPLIT, $0-16
|
||||
MOVD $0x5678, R28
|
||||
MOVD $0x5678, g
|
||||
MOVD a+0(FP), R0
|
||||
MOVD R0, ret+8(FP)
|
||||
RET
|
||||
|
||||
Reference in New Issue
Block a user