]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: use RDCYCLE for cputicks on riscv64
authorMeng Zhuo <mzh@golangcn.org>
Tue, 6 Jul 2021 07:17:07 +0000 (07:17 +0000)
committerMeng Zhuo <mzh@golangcn.org>
Wed, 18 Aug 2021 02:08:09 +0000 (02:08 +0000)
commit946e2543f878929752da9d16575dd5e96ac78532
tree888624aae058feb69fc3982890d366d4d5c4a69d
parent8e18428e389c04f38c3b7e8f152d7f14077b7850
runtime: use RDCYCLE for cputicks on riscv64

Use RDCYCLE instruction instead of RDTIME emulation

Change-Id: Id7b3de42a36d2d1b163c39cc79870eee7c840ad5
Reviewed-on: https://go-review.googlesource.com/c/go/+/332954
Trust: Meng Zhuo <mzh@golangcn.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/asm_riscv64.s