From c19019e1d560187426188d6d12a3049476b97a3d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 13 Nov 2019 09:44:58 +0100 Subject: [PATCH] [release-branch.go1.14-std] cpu: add basic support for GOARCH=riscv64 Updates golang/go#27532 Change-Id: I7250f272ff46f2765d498a97644fb570ae745a6c Reviewed-on: https://go-review.googlesource.com/c/sys/+/206860 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick (cherry picked from commit 2f3576d2c59b42b60d62d49998f5ba42bf45c5f5) Reviewed-on: https://go-review.googlesource.com/c/sys/+/217339 Run-TryBot: Filippo Valsorda Reviewed-by: Ian Lance Taylor --- cpu/cpu_riscv64.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cpu/cpu_riscv64.go diff --git a/cpu/cpu_riscv64.go b/cpu/cpu_riscv64.go new file mode 100644 index 00000000..efe2b7a8 --- /dev/null +++ b/cpu/cpu_riscv64.go @@ -0,0 +1,9 @@ +// 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. + +// +build riscv64 + +package cpu + +const cacheLineSize = 32