]> Cypherpunks repositories - gostls13.git/commitdiff
vendor: provide golang.org/x/sys/cpu/cpu_riscv64.go
authorJoel Sing <joel@sing.id.au>
Fri, 24 Jan 2020 15:39:59 +0000 (02:39 +1100)
committerJoel Sing <joel@sing.id.au>
Sat, 25 Jan 2020 16:31:46 +0000 (16:31 +0000)
Manually provide golang.org/x/sys/cpu/cpu_riscv64.go until such time
as this code can be updated, post release.

This already exists in x/sys/cpu via:

  https://go-review.googlesource.com/c/sys/+/206860

Update #27532

Change-Id: I57d598ef737642f9c3aa7b280c6c680477ae7633
Reviewed-on: https://go-review.googlesource.com/c/go/+/216261
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/vendor/golang.org/x/sys/cpu/cpu_riscv64.go [new file with mode: 0644]

diff --git a/src/vendor/golang.org/x/sys/cpu/cpu_riscv64.go b/src/vendor/golang.org/x/sys/cpu/cpu_riscv64.go
new file mode 100644 (file)
index 0000000..fe9feb7
--- /dev/null
@@ -0,0 +1,11 @@
+// Copyright 2020 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.
+
+// +build riscv64
+
+package cpu
+
+const cacheLineSize = 32
+
+func doinit() {}