[PATCH] Set rv64gcv as default to enable vector extension for disassembly
Nelson Chu
nelson@rivosinc.com
Thu Jul 31 10:32:59 GMT 2025
On Thu, Jul 31, 2025 at 3:21 PM Charlie Jenkins <charlie@rivosinc.com>
wrote:
> On Thu, Jul 31, 2025 at 10:37:16AM +0800, Nelson Chu wrote:
> > On Wed, Jul 30, 2025 at 9:09 PM Andreas Schwab <schwab@suse.de> wrote:
> >
> > > Why is that needed? AFAICT, objdump will happily decode any extension
> > > without that change.
> > >
> >
> > I guess maybe they are trying to dump an object which writes
> > vector instructions by .insn directives, so the elf architecture
> attribute
> > or mapping symbols won't have v. I will suggest two solutions here
> rather
>
> The goal here is to be able to use the disassembler from inside of
> native riscv gdb to dump any instruction. Currently it seems like gdb
> will only dump a subset of all instructions, even with the patch you
> sent Nelson. Here is an example program:
>
My patch isn't used to resolve your problem, it just lets assembler and
dis-assembler have the same default arch, so people can just update
riscv_all_supported_ext. It's probably convenient to be maintained.
Nelson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250731/95aa8d63/attachment-0001.htm>
More information about the Binutils
mailing list