as setup by the kernel on GOARCH=arm64.
Update #50947
Change-Id: I2f44be9b36e9ce8d264eccc0aa3df10825c5f4f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/422977
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Meng Zhuo <mzh@golangcn.org>
Reviewed-by: Dmitri Goutnik <dgoutnik@gmail.com>
Run-TryBot: Yuval Pavel Zholkover <paulzhol@gmail.com>
BEQ 3(PC)
// get CNTPCT (Physical Count Register) into R0
- MRS CNTPCT_EL0, R0 // SIGILL
+ MRS CNTPCT_EL0, R0
B 2(PC)
// get CNTVCT (Virtual Count Register) into R0
func (th *vdsoTimehands) getTimecounter() (uint32, bool) {
switch th.algo {
case _VDSO_TH_ALGO_ARM_GENTIM:
- return getCntxct(false), true
+ return getCntxct(th.physical != 0), true
default:
return 0, false
}