src/hotspot/cpu/ppc/assembler_ppc.hpp
changeset 54960 e46fe26d7f77
parent 53244 9807daeb47c4
child 58745 70e6b0d8db13
--- a/src/hotspot/cpu/ppc/assembler_ppc.hpp	Tue May 21 11:45:37 2019 +0200
+++ b/src/hotspot/cpu/ppc/assembler_ppc.hpp	Tue May 21 15:51:35 2019 +0200
@@ -929,11 +929,13 @@
 
   enum Predict { pt = 1, pn = 0 }; // pt = predict taken
 
-  // Instruction must start at passed address.
-  static int instr_len(unsigned char *instr) { return BytesPerInstWord; }
+  //---<  calculate length of instruction  >---
+  // With PPC64 being a RISC architecture, this always is BytesPerInstWord
+  // instruction must start at passed address
+  static unsigned int instr_len(unsigned char *instr) { return BytesPerInstWord; }
 
-  // longest instructions
-  static int instr_maxlen() { return BytesPerInstWord; }
+  //---<  longest instructions  >---
+  static unsigned int instr_maxlen() { return BytesPerInstWord; }
 
   // Test if x is within signed immediate range for nbits.
   static bool is_simm(int x, unsigned int nbits) {