--- a/src/hotspot/cpu/sparc/assembler_sparc.hpp Tue May 21 11:45:37 2019 +0200
+++ b/src/hotspot/cpu/sparc/assembler_sparc.hpp Tue May 21 15:51:35 2019 +0200
@@ -335,6 +335,14 @@
Lookaside = 1 << 4
};
+ //---< calculate length of instruction >---
+ // With SPARC 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 unsigned int instr_maxlen() { return BytesPerInstWord; }
+
static bool is_in_wdisp_range(address a, address b, int nbits) {
intptr_t d = intptr_t(b) - intptr_t(a);
return is_simm(d, nbits + 2);