]> Cypherpunks repositories - gostls13.git/commit
runtime: move arm hardware division support detection to internal/cpu
authorMartin Möhrmann <moehrmann@google.com>
Sun, 27 May 2018 06:49:36 +0000 (08:49 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Fri, 24 Aug 2018 14:27:07 +0000 (14:27 +0000)
commit2e8c31b3d2afce1c1c7b0c6af9cc4a9f296af299
tree68b737013b6cf6ec3b10915aff665b45c724b49b
parent4363c98f62e9e315ed20b12d2ce47021fd2bf7bc
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>
13 files changed:
src/internal/cpu/cpu.go
src/internal/cpu/cpu_arm.go
src/internal/cpu/cpu_no_init.go
src/runtime/cpuflags.go
src/runtime/os_darwin_arm.go
src/runtime/os_freebsd.go
src/runtime/os_freebsd_arm.go
src/runtime/os_linux_arm.go
src/runtime/os_nacl_arm.go
src/runtime/os_netbsd_arm.go
src/runtime/os_openbsd_arm.go
src/runtime/os_plan9_arm.go
src/runtime/vlop_arm.s