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/internal/cpu/cpu.go | |
| parent | 618126b9895db7f29a861caa4e330d149858ff56 (diff) | |
| download | go-e48a83f077e47bd015d4b57e63e9b6fb5e77dc8b.tar.xz | |
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/internal/cpu/cpu.go')
| -rw-r--r-- | src/internal/cpu/cpu.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/internal/cpu/cpu.go b/src/internal/cpu/cpu.go index f326b06332..84df6472eb 100644 --- a/src/internal/cpu/cpu.go +++ b/src/internal/cpu/cpu.go @@ -134,6 +134,14 @@ type s390x struct { _ CacheLinePad } +var MIPS64X mips64x + +type mips64x struct { + _ CacheLinePad + HasMSA bool // MIPS SIMD architecture + _ CacheLinePad +} + // Initialize examines the processor and sets the relevant variables above. // This is called by the runtime package early in program initialization, // before normal init functions are run. env is set by runtime if the OS supports |
