From cc86ea6644be72c323e3b1963a1f234fba062e59 Mon Sep 17 00:00:00 2001 From: panxuefeng Date: Fri, 30 Dec 2022 09:49:23 +0800 Subject: [PATCH] Support for LoongArch64 --- src/java/net/jpountz/util/Utils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/net/jpountz/util/Utils.java b/src/java/net/jpountz/util/Utils.java index 1ccaf11..e43c5c6 100644 --- a/src/java/net/jpountz/util/Utils.java +++ b/src/java/net/jpountz/util/Utils.java @@ -28,7 +28,8 @@ public enum Utils { String arch = System.getProperty("os.arch"); unalignedAccessAllowed = arch.equals("i386") || arch.equals("x86") || arch.equals("amd64") || arch.equals("x86_64") - || arch.equals("aarch64") || arch.equals("ppc64le"); + || arch.equals("aarch64") || arch.equals("ppc64le") + || arch.equals("loongarch64"); } public static boolean isUnalignedAccessAllowed() {