aboutsummaryrefslogtreecommitdiff
path: root/src/vendor
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-04-22 15:38:00 -0700
committerGopher Robot <gobot@golang.org>2022-05-03 19:48:07 +0000
commitbccce9028996502e62a92255d79d5e003fbae63b (patch)
tree47f2726b82afea2ab0b0f325cda75b0d1c68ec69 /src/vendor
parent884530b374501b997422d08833c2a21966bd1069 (diff)
downloadgo-bccce9028996502e62a92255d79d5e003fbae63b.tar.xz
vendor, cmd/vendor: update to current x/sys repo
Ran, in src and src/cmd: go get -u golang.org/x/sys go mod vendor go mod tidy This brings in loong64 support. Change-Id: Ide30bd7bd073f473be9d8329e6a4f1d2c903d9a3 Reviewed-on: https://go-review.googlesource.com/c/go/+/401855 Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/vendor')
-rw-r--r--src/vendor/golang.org/x/sys/cpu/byteorder.go1
-rw-r--r--src/vendor/golang.org/x/sys/cpu/cpu_loong64.go13
-rw-r--r--src/vendor/modules.txt2
3 files changed, 15 insertions, 1 deletions
diff --git a/src/vendor/golang.org/x/sys/cpu/byteorder.go b/src/vendor/golang.org/x/sys/cpu/byteorder.go
index dcbb14ef35..271055be0b 100644
--- a/src/vendor/golang.org/x/sys/cpu/byteorder.go
+++ b/src/vendor/golang.org/x/sys/cpu/byteorder.go
@@ -46,6 +46,7 @@ func hostByteOrder() byteOrder {
case "386", "amd64", "amd64p32",
"alpha",
"arm", "arm64",
+ "loong64",
"mipsle", "mips64le", "mips64p32le",
"nios2",
"ppc64le",
diff --git a/src/vendor/golang.org/x/sys/cpu/cpu_loong64.go b/src/vendor/golang.org/x/sys/cpu/cpu_loong64.go
new file mode 100644
index 0000000000..0f57b05bdb
--- /dev/null
+++ b/src/vendor/golang.org/x/sys/cpu/cpu_loong64.go
@@ -0,0 +1,13 @@
+// Copyright 2022 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.
+
+//go:build loong64
+// +build loong64
+
+package cpu
+
+const cacheLineSize = 64
+
+func initOptions() {
+}
diff --git a/src/vendor/modules.txt b/src/vendor/modules.txt
index 3bc4232059..78ead27048 100644
--- a/src/vendor/modules.txt
+++ b/src/vendor/modules.txt
@@ -19,7 +19,7 @@ golang.org/x/net/idna
golang.org/x/net/lif
golang.org/x/net/nettest
golang.org/x/net/route
-# golang.org/x/sys v0.0.0-20220317061510-51cd9980dadf
+# golang.org/x/sys v0.0.0-20220422013727-9388b58f7150
## explicit; go 1.17
golang.org/x/sys/cpu
# golang.org/x/text v0.3.8-0.20220124021120-d1c84af989ab