diff options
author | Martin Möhrmann <moehrmann@google.com> | 2018-05-27 08:49:36 +0200 |
---|---|---|
committer | Martin Möhrmann <moehrmann@google.com> | 2018-08-24 14:27:07 +0000 |
commit | 2e8c31b3d2afce1c1c7b0c6af9cc4a9f296af299 (patch) | |
tree | 68b737013b6cf6ec3b10915aff665b45c724b49b /src/runtime/os_freebsd.go | |
parent | 4363c98f62e9e315ed20b12d2ce47021fd2bf7bc (diff) | |
download | go-2e8c31b3d2afce1c1c7b0c6af9cc4a9f296af299.tar.gz go-2e8c31b3d2afce1c1c7b0c6af9cc4a9f296af299.zip |
runtime: move arm hardware division support detection to internal/cpu
Assumes mandatory VFP and VFPv3 support to be present by default
but not IDIVA if AT_HWCAP is not available.
Adds GODEBUGCPU options to disable the use of code paths in the runtime
that use hardware support for division.
Change-Id: Ida02311bd9b9701de3fc120697e69445bf6c0853
Reviewed-on: https://go-review.googlesource.com/114826
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/os_freebsd.go')
-rw-r--r-- | src/runtime/os_freebsd.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/os_freebsd.go b/src/runtime/os_freebsd.go index 631dc20ab4..08f7b0ecf0 100644 --- a/src/runtime/os_freebsd.go +++ b/src/runtime/os_freebsd.go @@ -389,6 +389,7 @@ const ( _AT_PAGESZ = 6 // Page size in bytes _AT_TIMEKEEP = 22 // Pointer to timehands. _AT_HWCAP = 25 // CPU feature flags + _AT_HWCAP2 = 26 // CPU feature flags 2 ) func sysauxv(auxv []uintptr) { |