< prev index next >

src/hotspot/cpu/zero/disassembler_zero.hpp

Print this page
rev 54542 : 8213084: Rework and enhance Print[Opto]Assembly output
Reviewed-by:

*** 32,37 **** --- 32,57 ---- static const char* pd_cpu_opts() { return ""; } + // Returns address of n-th instruction preceding addr, + // NULL if no preceding instruction can be found. + // On ZERO, we assume a constant instruction length of 1 byte. + // It might be beneficial to check "is_readable" as we do on ppc and s390. + static address find_prev_instr(address addr, int n_instr) { + return addr - 1*n_instr; + } + + // special-case instruction decoding. + // There may be cases where the binutils disassembler doesn't do + // the perfect job. In those cases, decode_instruction0 may kick in + // and do it right. + // If nothing had to be done, just return "here", otherwise return "here + instr_len(here)" + static address decode_instruction0(address here, outputStream* st, address virtual_begin = NULL) { + return here; + } + + // platform-specific instruction annotations (like value of loaded constants) + static void annotate(address pc, outputStream* st) { }; + #endif // CPU_ZERO_DISASSEMBLER_ZERO_HPP
< prev index next >