|
|
@@ -1,4 +1,4 @@
|
|
|
-From 9a3c2a0714420186ae8d5159d5416c6fa2009ad9 Mon Sep 17 00:00:00 2001
|
|
|
+From c990ac56c441682b65a3dc699a753e1d924b40d1 Mon Sep 17 00:00:00 2001
|
|
|
From: Alexey Brodkin <abrodkin@synopsys.com>
|
|
|
Date: Mon, 18 Oct 2021 05:20:05 -0700
|
|
|
Subject: [PATCH] Add ARCv2 ISA processors support to Zero
|
|
|
@@ -20,10 +20,10 @@ Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
|
|
|
3 files changed, 23 insertions(+), 1 deletion(-)
|
|
|
|
|
|
diff --git a/make/autoconf/libraries.m4 b/make/autoconf/libraries.m4
|
|
|
-index 5120918aed2..f7a99955874 100644
|
|
|
+index 51d4f724c33..41844933a14 100644
|
|
|
--- a/make/autoconf/libraries.m4
|
|
|
+++ b/make/autoconf/libraries.m4
|
|
|
-@@ -163,6 +163,14 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
|
|
|
+@@ -157,6 +157,14 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
|
|
|
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lrt"
|
|
|
fi
|
|
|
|
|
|
@@ -39,7 +39,7 @@ index 5120918aed2..f7a99955874 100644
|
|
|
if test "x$OPENJDK_TARGET_OS" = xaix; then
|
|
|
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lperfstat"
|
|
|
diff --git a/make/autoconf/platform.m4 b/make/autoconf/platform.m4
|
|
|
-index c0f2446dbd7..dc416ece885 100644
|
|
|
+index df610cc489b..2e21572ba4d 100644
|
|
|
--- a/make/autoconf/platform.m4
|
|
|
+++ b/make/autoconf/platform.m4
|
|
|
@@ -54,6 +54,12 @@ AC_DEFUN([PLATFORM_EXTRACT_VARS_FROM_CPU],
|
|
|
@@ -65,10 +65,10 @@ index c0f2446dbd7..dc416ece885 100644
|
|
|
HOTSPOT_$1_CPU_DEFINE=SPARC
|
|
|
elif test "x$OPENJDK_$1_CPU" = xppc; then
|
|
|
diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp
|
|
|
-index b08caf4d5d3..2bf084895ba 100644
|
|
|
+index 492300a37d4..3a10790f4a0 100644
|
|
|
--- a/src/hotspot/os/linux/os_linux.cpp
|
|
|
+++ b/src/hotspot/os/linux/os_linux.cpp
|
|
|
-@@ -1653,6 +1653,9 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
+@@ -1663,6 +1663,9 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
#ifndef EM_AARCH64
|
|
|
#define EM_AARCH64 183 /* ARM AARCH64 */
|
|
|
#endif
|
|
|
@@ -78,7 +78,7 @@ index b08caf4d5d3..2bf084895ba 100644
|
|
|
#ifndef EM_RISCV
|
|
|
#define EM_RISCV 243 /* RISC-V */
|
|
|
#endif
|
|
|
-@@ -1677,6 +1680,7 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
+@@ -1687,6 +1690,7 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
{EM_SH, EM_SH, ELFCLASS32, ELFDATA2MSB, (char*)"SuperH BE"},
|
|
|
#endif
|
|
|
{EM_ARM, EM_ARM, ELFCLASS32, ELFDATA2LSB, (char*)"ARM"},
|
|
|
@@ -86,7 +86,7 @@ index b08caf4d5d3..2bf084895ba 100644
|
|
|
// we only support 64 bit z architecture
|
|
|
{EM_S390, EM_S390, ELFCLASS64, ELFDATA2MSB, (char*)"IBM System/390"},
|
|
|
{EM_ALPHA, EM_ALPHA, ELFCLASS64, ELFDATA2LSB, (char*)"Alpha"},
|
|
|
-@@ -1709,6 +1713,8 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
+@@ -1719,6 +1723,8 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
static Elf32_Half running_arch_code=EM_PPC;
|
|
|
#elif (defined AARCH64)
|
|
|
static Elf32_Half running_arch_code=EM_AARCH64;
|
|
|
@@ -95,7 +95,7 @@ index b08caf4d5d3..2bf084895ba 100644
|
|
|
#elif (defined ARM)
|
|
|
static Elf32_Half running_arch_code=EM_ARM;
|
|
|
#elif (defined S390)
|
|
|
-@@ -1731,7 +1737,7 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
+@@ -1741,7 +1747,7 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
static Elf32_Half running_arch_code=EM_LOONGARCH;
|
|
|
#else
|
|
|
#error Method os::dll_load requires that one of following is defined:\
|
|
|
@@ -105,5 +105,5 @@ index b08caf4d5d3..2bf084895ba 100644
|
|
|
|
|
|
// Identify compatibility class for VM's architecture and library's architecture
|
|
|
--
|
|
|
-2.16.2
|
|
|
+2.43.0
|
|
|
|