[patch] fixing the ppc64el hotspot build in 8u20-b16

Matthias Klose doko at ubuntu.com
Thu Jun 5 14:37:27 UTC 2014


Hi,

the ppc64el hotspot seems to be merged in 8u20-b16.  However I got some build
failures building on ppc64el, fixed with the attached patch.  Are you aware of
any other patches needed for the port?

Thanks, Matthias
-------------- next part --------------
# Missing bits for the PPC ELF v2 ABI

--- a/hotspot/src/cpu/ppc/vm/interp_masm_ppc_64.cpp
+++ b/hotspot/src/cpu/ppc/vm/interp_masm_ppc_64.cpp
@@ -119,9 +119,15 @@
     // Call the Interpreter::remove_activation_preserving_args_entry()
     // func to get the address of the same-named entrypoint in the
     // generated interpreter code.
+#if !defined(ABI_ELFv2)
     call_c(CAST_FROM_FN_PTR(FunctionDescriptor*,
                             Interpreter::remove_activation_preserving_args_entry),
            relocInfo::none);
+#else
+    call_c(CAST_FROM_FN_PTR(address,
+                            Interpreter::remove_activation_preserving_args_entry),
+           relocInfo::none);
+#endif
 
     // Jump to Interpreter::_remove_activation_preserving_args_entry.
     mtctr(R3_RET);
--- a/hotspot/src/cpu/ppc/vm/templateInterpreter_ppc.cpp
+++ b/hotspot/src/cpu/ppc/vm/templateInterpreter_ppc.cpp
@@ -1019,8 +1019,13 @@
   // native result across the call. No oop is present.
 
   __ mr(R3_ARG1, R16_thread);
+#if !defined(ABI_ELFv2)
   __ call_c(CAST_FROM_FN_PTR(FunctionDescriptor*, JavaThread::check_special_condition_for_native_trans),
             relocInfo::none);
+#else
+  __ call_c(CAST_FROM_FN_PTR(address, JavaThread::check_special_condition_for_native_trans),
+            relocInfo::none);
+#endif
 
   __ bind(sync_check_done);
 


More information about the ppc-aix-port-dev mailing list