@@ -2,7 +2,7 @@
 
 package runtime
 
-const GOARCH = "arm" // riscv pretends to be arm
+const GOARCH = "riscv"
 
 // The bitness of the CPU (e.g. 8, 32, 64).
 const TargetBits = 32
// +build tinygo.riscv32

package runtime

const GOARCH = "arm" // riscv pretends to be arm

// The bitness of the CPU (e.g. 8, 32, 64).
const TargetBits = 32

// Align on word boundary.
func align(ptr uintptr) uintptr {
	return (ptr + 3) &^ 3
}

Was this change intentional? I think the `GOARCH` value here should be kept in sync with the `GOARCH` in the target JSON file (targets/riscv.json) and with the build tag used there. Because those other two cannot be changed yet because of backwards compatibility, I think this should be kept at `"arm"`, even if that's incorrect. We can change that once we drop Go support before 1.14.