8310105: LoongArch64 builds are broken after JDK-8304913

Reviewed-by: shade, rriggs
This commit is contained in:
Ao Qi 2023-06-19 21:05:55 +00:00 committed by Aleksey Shipilev
parent 33c6ec9d4e
commit 137a5f7c2c
3 changed files with 13 additions and 0 deletions

View file

@ -39,6 +39,7 @@ public enum Architecture {
AARCH64,
ARM,
RISCV64,
LOONGARCH64,
S390,
PPC64,
MIPSEL,
@ -71,6 +72,14 @@ public enum Architecture {
return PlatformProps.TARGET_ARCH_IS_RISCV64;
}
/**
* {@return {@code true} if the current architecture is LOONGARCH64}
*/
@ForceInline
public static boolean isLOONGARCH64() {
return PlatformProps.TARGET_ARCH_IS_LOONGARCH64;
}
/**
* {@return {@code true} if the current architecture is S390}
*/

View file

@ -55,6 +55,7 @@ class PlatformProps {
static final boolean TARGET_ARCH_IS_AARCH64 = "@@OPENJDK_TARGET_CPU@@" == "aarch64";
static final boolean TARGET_ARCH_IS_ARM = "@@OPENJDK_TARGET_CPU@@" == "arm";
static final boolean TARGET_ARCH_IS_RISCV64 = "@@OPENJDK_TARGET_CPU@@" == "riscv64";
static final boolean TARGET_ARCH_IS_LOONGARCH64 = "@@OPENJDK_TARGET_CPU@@" == "loongarch64";
static final boolean TARGET_ARCH_IS_S390 = "@@OPENJDK_TARGET_CPU@@" == "s390";
static final boolean TARGET_ARCH_IS_PPC64 = "@@OPENJDK_TARGET_CPU@@" == "ppc64";
static final boolean TARGET_ARCH_IS_MIPSEL = "@@OPENJDK_TARGET_CPU@@" == "mipsel";