hotspot/src/cpu/ppc/vm/vm_version_ppc.cpp
changeset 46628 d19bf13a5655
parent 46625 edefffab74e2
child 46698 fa625dca9270
--- a/hotspot/src/cpu/ppc/vm/vm_version_ppc.cpp	Tue Jul 04 17:33:40 2017 +0100
+++ b/hotspot/src/cpu/ppc/vm/vm_version_ppc.cpp	Wed Jul 05 17:19:37 2017 +0200
@@ -81,7 +81,7 @@
             UINTX_FORMAT " on this machine", PowerArchitecturePPC64);
 
   // Power 8: Configure Data Stream Control Register.
-  if (has_mfdscr()) {
+  if (PowerArchitecturePPC64 >= 8 && has_mfdscr()) {
     config_dscr();
   }
 
@@ -698,7 +698,7 @@
   // Execute code. Illegal instructions will be replaced by 0 in the signal handler.
   VM_Version::_is_determine_features_test_running = true;
   // We must align the first argument to 16 bytes because of the lqarx check.
-  (*test)(align_up(mid_of_test_area, 16), (uint64_t)0);
+  (*test)(align_up((address)mid_of_test_area, 16), 0);
   VM_Version::_is_determine_features_test_running = false;
 
   // determine which instructions are legal.