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