diff options
author | Meng Zhuo <mengzhuo1203@gmail.com> | 2020-02-28 20:14:18 +0800 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2020-02-28 23:18:52 +0000 |
commit | e48a83f077e47bd015d4b57e63e9b6fb5e77dc8b (patch) | |
tree | 2e2e0c0cf8900eefef85f447d2e673b8b1da93f7 /src/runtime/os_linux_mips64x.go | |
parent | 618126b9895db7f29a861caa4e330d149858ff56 (diff) | |
download | go-e48a83f077e47bd015d4b57e63e9b6fb5e77dc8b.tar.gz go-e48a83f077e47bd015d4b57e63e9b6fb5e77dc8b.zip |
internal/cpu: add MIPS64x feature detection
Change-Id: Iacdad1758aa15e4703fccef38c08ecb338b95fd7
Reviewed-on: https://go-review.googlesource.com/c/go/+/200579
Run-TryBot: Meng Zhuo <mengzhuo1203@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/os_linux_mips64x.go')
-rw-r--r-- | src/runtime/os_linux_mips64x.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/os_linux_mips64x.go b/src/runtime/os_linux_mips64x.go index 464a26a8a4..4ff66f9538 100644 --- a/src/runtime/os_linux_mips64x.go +++ b/src/runtime/os_linux_mips64x.go @@ -7,7 +7,13 @@ package runtime +import "internal/cpu" + func archauxv(tag, val uintptr) { + switch tag { + case _AT_HWCAP: + cpu.HWCap = uint(val) + } } func osArchInit() {} |