< prev index next >

src/hotspot/cpu/sparc/disassembler_sparc.hpp

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

*** 31,36 **** --- 31,56 ---- static const char* pd_cpu_opts() { return "v9only"; } + // Returns address of n-th instruction preceding addr, + // NULL if no preceding instruction can be found. + // With SPARC being a RISC architecture, this always is BytesPerInstWord + // 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 - BytesPerInstWord*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_SPARC_DISASSEMBLER_SPARC_HPP
< prev index next >