diff options
| author | Joel Sing <joel@sing.id.au> | 2019-11-04 05:12:11 +1100 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-11-11 22:13:42 +0000 |
| commit | 0c703b37dffe74d3fffc04347884bb0ee2fba5b3 (patch) | |
| tree | a531f6e289c3e3e717469e9045debc865a8be81f /src/internal/cpu | |
| parent | ee706cfe83ec1bbb95e7ebe29c640544510c732b (diff) | |
| download | go-0c703b37dffe74d3fffc04347884bb0ee2fba5b3.tar.xz | |
internal/cpu,internal/bytealg: add support for riscv64
Based on riscv-go port.
Updates #27532
Change-Id: Ia3aed521d4109e7b73f762c5a3cdacc7cdac430d
Reviewed-on: https://go-review.googlesource.com/c/go/+/204635
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/internal/cpu')
| -rw-r--r-- | src/internal/cpu/cpu_riscv64.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/internal/cpu/cpu_riscv64.go b/src/internal/cpu/cpu_riscv64.go new file mode 100644 index 0000000000..c49cab79fd --- /dev/null +++ b/src/internal/cpu/cpu_riscv64.go @@ -0,0 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package cpu + +const CacheLinePadSize = 32 |
