Blame SOURCES/java-1.8.0-openjdk-rh1191652-hotspot-aarch64.patch

d934b5
# HG changeset patch
d934b5
# User andrew
d934b5
# Date 1424102734 0
d934b5
#      Mon Feb 16 16:05:34 2015 +0000
d934b5
# Node ID 4fdaf786d977aa77afdb68b8829579d31069e39c
d934b5
# Parent  01a0011cc101f3308c5876db8282c0fc5e3ba2e6
d934b5
PR2236: ppc64le should report its os.arch as ppc64le so tools can detect it
d934b5
Summary: Use ppc64le as the arch directory on that platform and report it in os.arch
d934b5
d934b5
--- openjdk/hotspot/make/defs.make.orig	2015-03-03 17:05:51.000000000 -0500
d934b5
+++ openjdk/hotspot/make/defs.make	2015-03-03 19:18:20.000000000 -0500
d934b5
@@ -319,6 +319,13 @@
d934b5
   LIBARCH/arm     = arm
d934b5
   LIBARCH/zero    = $(ZERO_LIBARCH)
d934b5
 
d934b5
+  # Override LIBARCH for ppc64le
d934b5
+  ifeq ($(ARCH), ppc64)
d934b5
+    ifeq ($(OPENJDK_TARGET_CPU_ENDIAN), little)
d934b5
+      LIBARCH = ppc64le
d934b5
+    endif
d934b5
+  endif
d934b5
+
d934b5
   LP64_ARCH = sparcv9 amd64 ppc64 aarch64 ia64 zero
d934b5
 endif
d934b5
 
d934b5
diff -r 01a0011cc101 -r 4fdaf786d977 src/os/linux/vm/os_linux.cpp
d934b5
--- openjdk/hotspot/src/os/linux/vm/os_linux.cpp	Mon Feb 16 13:18:10 2015 +0000
d934b5
+++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp	Mon Feb 16 16:05:34 2015 +0000
d934b5
@@ -305,7 +305,11 @@
d934b5
 #elif defined(PPC32)
d934b5
 static char cpu_arch[] = "ppc";
d934b5
 #elif defined(PPC64)
d934b5
+#if defined(VM_LITTLE_ENDIAN)
d934b5
+static char cpu_arch[] = "ppc64le";
d934b5
+#else
d934b5
 static char cpu_arch[] = "ppc64";
d934b5
+#endif
d934b5
 #elif defined(SPARC)
d934b5
 #  ifdef _LP64
d934b5
 static char cpu_arch[] = "sparcv9";