From 780ca9ee70fbd40f2ce29d0bd92c1d25015428c6 Mon Sep 17 00:00:00 2001 From: zhaixiaojuan <67671683+zhaixiaojuan@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:43:25 +0800 Subject: [PATCH] Add loong64 support & fix endian error (#229) Co-authored-by: yangzewei --- internal/runtimex/readunaligned.go | 6 +++--- internal/runtimex/readunaligned_bigendian.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/runtimex/readunaligned.go b/internal/runtimex/readunaligned.go index 6e545073..f7e49dc4 100644 --- a/internal/runtimex/readunaligned.go +++ b/internal/runtimex/readunaligned.go @@ -12,11 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build 386 || amd64 || arm || arm64 || ppc64le || mips64le || mipsle || riscv64 || wasm -// +build 386 amd64 arm arm64 ppc64le mips64le mipsle riscv64 wasm +//go:build 386 || amd64 || arm || arm64 || ppc64le || mips64le || mipsle || riscv64 || wasm || loong64 +// +build 386 amd64 arm arm64 ppc64le mips64le mipsle riscv64 wasm loong64 // -// from golang-go/src/os/endian_big.go +// from golang-go/src/os/endian_little.go package runtimex diff --git a/internal/runtimex/readunaligned_bigendian.go b/internal/runtimex/readunaligned_bigendian.go index 3b88d01a..12a90f2d 100644 --- a/internal/runtimex/readunaligned_bigendian.go +++ b/internal/runtimex/readunaligned_bigendian.go @@ -16,7 +16,7 @@ // +build ppc64 s390x mips mips64 // -// from golang-go/src/os/endian_little.go +// from golang-go/src/os/endian_big.go package runtimex