mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8310105: LoongArch64 builds are broken after JDK-8304913
Reviewed-by: shade, rriggs
This commit is contained in:
parent
33c6ec9d4e
commit
137a5f7c2c
3 changed files with 13 additions and 0 deletions
|
@ -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}
|
||||
*/
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue