8315020
authorOpenJDK Team <openjdk-17@packages.debian.org>
Thu, 2 Nov 2023 10:23:27 +0000 (11:23 +0100)
committerMatthias Klose <doko@ubuntu.com>
Thu, 2 Nov 2023 10:23:27 +0000 (11:23 +0100)
Gbp-Pq: Name 8315020.diff

make/autoconf/platform.m4
src/hotspot/os/linux/os_linux.cpp

index b419d4324db5a8b2b181d4dca93ed1c88475334b..7b820d8e7d05fa7f3cf5671a97dcb956a88f4b6c 100644 (file)
@@ -577,6 +577,8 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
     HOTSPOT_$1_CPU_DEFINE=S390
   elif test "x$OPENJDK_$1_CPU" = xs390x; then
     HOTSPOT_$1_CPU_DEFINE=S390
+  elif test "x$OPENJDK_$1_CPU" = xloongarch64; then
+    HOTSPOT_$1_CPU_DEFINE=LOONGARCH64
   elif test "x$OPENJDK_$1_CPU" != x; then
     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
   fi
index 99dd4c824201a20a0b31027193c02b573eac64d7..4c63f292e86d4585d806ccf241d1d53631d8f678 100644 (file)
@@ -1791,11 +1791,11 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
   static  Elf32_Half running_arch_code=EM_SH;
 #elif  (defined RISCV)
   static  Elf32_Half running_arch_code=EM_RISCV;
-#elif  (defined LOONGARCH)
+#elif  (defined LOONGARCH64)
   static  Elf32_Half running_arch_code=EM_LOONGARCH;
 #else
     #error Method os::dll_load requires that one of following is defined:\
-        AARCH64, ALPHA, ARM, AMD64, IA32, IA64, LOONGARCH, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, RISCV, S390, SH, __sparc
+        AARCH64, ALPHA, ARM, AMD64, IA32, IA64, LOONGARCH64, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, RISCV, S390, SH, __sparc
 #endif
 
   // Identify compatibility class for VM's architecture and library's architecture