On Sat, Nov 28, 2026 at 12:42:52PM +0000, Bradley Morgan wrote:
> On 7 September 2026 06:14:29 BST, Athira Rajeev <[email protected]>
> wrote:
> >Power10 introduces prefixed instructions that are 8 bytes wide.  objdump
> >emits these as two lines: the first carries both the raw bytes and the
> >mnemonic, while the second carries only the raw bytes of the second word
> >with no mnemonic:
> >
> >  1020900c:  0b 00 10 06  pla  r31,757280  # 102c1e2c <cctki_vi_ML_CCZ4>
> >  10209010:  20 8e e0 3b
> >
> >disasm_line__parse_powerpc() calls disasm_line__parse() on the mnemonic
> >portion of the line.  disasm_line__parse() returns -1 when the name
> >string is empty, which causes disasm_line__new() to return NULL, which
> >causes symbol__parse_objdump_line() to return -1, which immediately
> >breaks the objdump output parsing loop in symbol__disassemble_objdump().
> >
> >The result is that annotation of any function containing a prefixed
> >instruction stops at the continuation word and all subsequent
> >instructions in the function are lost.
> >
> >Fix this by treating an empty mnemonic as a valid case in
> >disasm_line__parse_powerpc(): skip the call to disasm_line__parse() and
> >set the instruction name to an empty heap-allocated string instead,
> >allowing parsing to continue to the next line.
> >
> >Reported-by: Narendra Nalli <[email protected]>
> >Reported-by: Vijay Puliyala <[email protected]>
> 
> yes, thanks
> 
> Reviewed-by: Bradley Morgan <[email protected]>
> 
> 
> Tested-by: Bradley Morgan <[email protected]> # Power10

Thanks!

Athira, I assume we would send v2 with the new tags as well as fixes for
issues found by Sashiko.

Thanks,
Namhyung


Reply via email to