mirror of
https://github.com/golang/go
synced 2024-11-17 17:04:47 -07:00
runtime: use riscv64 RDTIME instruction
Use the actual RDTIME instruction, rather than a WORD. Generated code is the same. Change-Id: I6f6f5a1836eae2d05af34d4a22db2ede4fdcb458 Reviewed-on: https://go-review.googlesource.com/c/go/+/231997 Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
b6ad288032
commit
cf9b4f63a5
@ -79,7 +79,7 @@ TEXT setg_gcc<>(SB),NOSPLIT,$0-0
|
||||
|
||||
// func cputicks() int64
|
||||
TEXT runtime·cputicks(SB),NOSPLIT,$0-8
|
||||
WORD $0xc0102573 // rdtime a0
|
||||
RDTIME A0
|
||||
MOV A0, ret+0(FP)
|
||||
RET
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user