summaryrefslogtreecommitdiff
path: root/java/openjdk8/files
diff options
context:
space:
mode:
Diffstat (limited to 'java/openjdk8/files')
-rw-r--r--java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make9
-rw-r--r--java/openjdk8/files/patch-hotspot_src_os__cpu_bsd__ppc_vm_bytes__bsd__ppc.inline.hpp20
2 files changed, 29 insertions, 0 deletions
diff --git a/java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make b/java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make
new file mode 100644
index 000000000000..023fb10fd71b
--- /dev/null
+++ b/java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make
@@ -0,0 +1,9 @@
+--- hotspot/make/bsd/makefiles/ppc64.make.orig 2020-11-18 23:45:09 UTC
++++ hotspot/make/bsd/makefiles/ppc64.make
+@@ -47,5 +47,5 @@ else
+ CFLAGS += -DVM_LITTLE_ENDIAN -DABI_ELFv2
+
+ # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
+- CFLAGS += -mcpu=power7 -mtune=power8 -minsert-sched-nops=regroup_exact -mno-multiple -mno-string
++ CFLAGS += -mcpu=power8 -mtune=power8
+ endif
diff --git a/java/openjdk8/files/patch-hotspot_src_os__cpu_bsd__ppc_vm_bytes__bsd__ppc.inline.hpp b/java/openjdk8/files/patch-hotspot_src_os__cpu_bsd__ppc_vm_bytes__bsd__ppc.inline.hpp
new file mode 100644
index 000000000000..b8b8ed237886
--- /dev/null
+++ b/java/openjdk8/files/patch-hotspot_src_os__cpu_bsd__ppc_vm_bytes__bsd__ppc.inline.hpp
@@ -0,0 +1,20 @@
+--- hotspot/src/os_cpu/bsd_ppc/vm/bytes_bsd_ppc.inline.hpp.orig 2020-11-18 23:50:31 UTC
++++ hotspot/src/os_cpu/bsd_ppc/vm/bytes_bsd_ppc.inline.hpp
+@@ -27,13 +27,13 @@
+ #define OS_CPU_BSD_PPC_VM_BYTES_BSD_PPC_INLINE_HPP
+
+ #if defined(VM_LITTLE_ENDIAN)
+-#include <byteswap.h>
++#include <sys/endian.h>
+
+ // Efficient swapping of data bytes from Java byte
+ // ordering to native byte ordering and vice versa.
+-inline u2 Bytes::swap_u2(u2 x) { return bswap_16(x); }
+-inline u4 Bytes::swap_u4(u4 x) { return bswap_32(x); }
+-inline u8 Bytes::swap_u8(u8 x) { return bswap_64(x); }
++inline u2 Bytes::swap_u2(u2 x) { return bswap16(x); }
++inline u4 Bytes::swap_u4(u4 x) { return bswap32(x); }
++inline u8 Bytes::swap_u8(u8 x) { return bswap64(x); }
+ #endif // VM_LITTLE_ENDIAN
+
+ #endif // OS_CPU_BSD_PPC_VM_BYTES_BSD_PPC_INLINE_HPP