]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Fix abort when displaying data and partial instructions
authorCharlie Jenkins <charlie@rivosinc.com>
Wed, 19 Feb 2025 21:20:18 +0000 (13:20 -0800)
committerNelson Chu <nelson@rivosinc.com>
Wed, 26 Feb 2025 15:12:17 +0000 (23:12 +0800)
commit227a52fbbd60325440af342e14076f75397187ed
treeb9b603d47371e3b42db83fb22e7cc7ac11bc40c0
parent5e0032993ab22f52fc66a26260ce0b489c1976b3
RISC-V: Fix abort when displaying data and partial instructions

If data is encountered that is not a power of two, dump all of the data with
a .<N>byte directive.  The current largest support risc-v instruction length
is 22, so the data over 22 bytes will be displayed by,
.insn, 22, ... + .<N-22>byte.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
gas/testsuite/gas/riscv/dis-data.d [new file with mode: 0644]
gas/testsuite/gas/riscv/dis-data.s [new file with mode: 0644]
gas/testsuite/gas/riscv/dis-partial-insn-word.d
opcodes/riscv-dis.c