Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2020 20:00:25 +0000 (UTC)
From:      Greg Lewis <glewis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r528937 - head/java/openjdk12/files
Message-ID:  <202003222000.02MK0Ql6034137@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glewis
Date: Sun Mar 22 20:00:25 2020
New Revision: 528937
URL: https://svnweb.freebsd.org/changeset/ports/528937

Log:
  Fix the build on aarch64
  
  Submitted by:	Klaus Küchemann <maciphone2@googlemail.com>

Added:
  head/java/openjdk12/files/patch-src_hotspot_os__cpu_bsd__aarch64_vm__version__bsd__aarch64.cpp   (contents, props changed)

Added: head/java/openjdk12/files/patch-src_hotspot_os__cpu_bsd__aarch64_vm__version__bsd__aarch64.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/java/openjdk12/files/patch-src_hotspot_os__cpu_bsd__aarch64_vm__version__bsd__aarch64.cpp	Sun Mar 22 20:00:25 2020	(r528937)
@@ -0,0 +1,59 @@
+--- src/hotspot/os_cpu/bsd_aarch64/vm_version_bsd_aarch64.cpp
++++ src/hotspot/os_cpu/bsd_aarch64/vm_version_bsd_aarch64.cpp
+@@ -76,6 +76,22 @@
+ #define ID_AA64PFR0_AdvSIMD_HP (UL(0x1) << ID_AA64PFR0_AdvSIMD_SHIFT)
+ #endif
+ 
++#ifndef ID_AA64ISAR0_AES_VAL
++#define ID_AA64ISAR0_AES_VAL ID_AA64ISAR0_AES
++#endif
++
++#ifndef ID_AA64ISAR0_SHA1_VAL
++#define ID_AA64ISAR0_SHA1_VAL ID_AA64ISAR0_SHA1
++#endif
++
++#ifndef ID_AA64ISAR0_SHA2_VAL
++#define ID_AA64ISAR0_SHA2_VAL ID_AA64ISAR0_SHA2
++#endif
++
++#ifndef ID_AA64ISAR0_CRC32_VAL
++#define ID_AA64ISAR0_CRC32_VAL ID_AA64ISAR0_CRC32
++#endif
++
+ #define	CPU_IMPL_ARM		0x41
+ #define	CPU_IMPL_BROADCOM	0x42
+ #define	CPU_IMPL_CAVIUM		0x43
+@@ -240,26 +256,26 @@ unsigned long VM_Version::os_get_processor_features() {
+   _model = cpu_desc[cpu].cpu_part_num;
+   _revision = cpu_desc[cpu].cpu_revision;
+ 
+-  id_aa64isar0 = READ_SPECIALREG(ID_AA64ISAR0_EL1);
+-  id_aa64pfr0 = READ_SPECIALREG(ID_AA64PFR0_EL1);
++  id_aa64isar0 = READ_SPECIALREG(id_aa64isar0_el1);
++  id_aa64pfr0 = READ_SPECIALREG(id_aa64pfr0_el1);
+ 
+-  if (ID_AA64ISAR0_AES(id_aa64isar0) == ID_AA64ISAR0_AES_BASE) {
++  if (ID_AA64ISAR0_AES_VAL(id_aa64isar0) == ID_AA64ISAR0_AES_BASE) {
+     auxv = auxv | HWCAP_AES;
+   }
+ 
+-  if (ID_AA64ISAR0_AES(id_aa64isar0) == ID_AA64ISAR0_AES_PMULL) {
++  if (ID_AA64ISAR0_AES_VAL(id_aa64isar0) == ID_AA64ISAR0_AES_PMULL) {
+     auxv = auxv | HWCAP_PMULL;
+   }
+ 
+-  if (ID_AA64ISAR0_SHA1(id_aa64isar0) == ID_AA64ISAR0_SHA1_BASE) {
++  if (ID_AA64ISAR0_SHA1_VAL(id_aa64isar0) == ID_AA64ISAR0_SHA1_BASE) {
+     auxv = auxv | HWCAP_SHA1;
+   }
+ 
+-  if (ID_AA64ISAR0_SHA2(id_aa64isar0) == ID_AA64ISAR0_SHA2_BASE) {
++  if (ID_AA64ISAR0_SHA2_VAL(id_aa64isar0) == ID_AA64ISAR0_SHA2_BASE) {
+     auxv = auxv | HWCAP_SHA2;
+   }
+ 
+-  if (ID_AA64ISAR0_CRC32(id_aa64isar0) == ID_AA64ISAR0_CRC32_BASE) {
++  if (ID_AA64ISAR0_CRC32_VAL(id_aa64isar0) == ID_AA64ISAR0_CRC32_BASE) {
+     auxv = auxv | HWCAP_CRC32;
+   }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003222000.02MK0Ql6034137>