8177390: java -version does not differentiate between which port of AArch64 is used
authorneugens
Wed, 29 Mar 2017 15:44:34 +0000
changeset 44411 8c642d0b237e
parent 44410 1113a1c09f10
child 44412 0adfc71865a9
child 44470 d10b1eca0b45
child 44471 7e8e5ceecf99
child 44516 6da0313ebe17
8177390: java -version does not differentiate between which port of AArch64 is used Reviewed-by: aph, dholmes
hotspot/make/lib/CompileJvm.gmk
hotspot/test/test_env.sh
--- a/hotspot/make/lib/CompileJvm.gmk	Thu Mar 30 19:55:04 2017 +0200
+++ b/hotspot/make/lib/CompileJvm.gmk	Wed Mar 29 15:44:34 2017 +0000
@@ -118,6 +118,12 @@
   OPENJDK_TARGET_CPU_VM_VERSION := amd64
 else ifeq ($(OPENJDK_TARGET_CPU), sparcv9)
   OPENJDK_TARGET_CPU_VM_VERSION := sparc
+else ifeq ($(HOTSPOT_TARGET_CPU_ARCH), arm)
+  ifeq ($(OPENJDK_TARGET_CPU), aarch64)
+    # This sets the Oracle Aarch64 port to use arm64
+    # while the original Aarch64 port uses aarch64
+    OPENJDK_TARGET_CPU_VM_VERSION := arm64
+  endif
 else
   OPENJDK_TARGET_CPU_VM_VERSION := $(OPENJDK_TARGET_CPU)
 endif
--- a/hotspot/test/test_env.sh	Thu Mar 30 19:55:04 2017 +0200
+++ b/hotspot/test/test_env.sh	Wed Mar 29 15:44:34 2017 +0000
@@ -214,6 +214,11 @@
 then
   VM_CPU="aarch64"
 fi
+grep "arm64" vm_version.out > ${NULL}
+if [ $? = 0 ]
+then
+  VM_CPU="aarch64"
+fi
 export VM_TYPE VM_BITS VM_OS VM_CPU
 echo "VM_TYPE=${VM_TYPE}"
 echo "VM_BITS=${VM_BITS}"