Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] RISC-V: Fix abort when displaying data and add test
@ 2025-02-12  5:08 Charlie Jenkins
  2025-02-12  5:08 ` [PATCH 1/2] RISC-V: Fix abort when displaying .dword Charlie Jenkins
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Charlie Jenkins @ 2025-02-12  5:08 UTC (permalink / raw)
  To: jiawei, Nelson Chu, Charlie Jenkins, Jan Beulich, Andrew Burgess
  Cc: gdb-patches, Binutils

Commit 6a04e8230707 ("RISC-V: Fix display of partial instructions")
changed how objdump displays instructions. This had the unintented
side-effect that it allowed 6 byte instructions to be displayed which
happens when a .dword is attempted to be split into instructions. Add
support for 5, 6, and 7 byte instructions to remedy this
issue.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
---
Charlie Jenkins (2):
      RISC-V: Fix abort when displaying .dword
      RISC-V: Add testcase for 6 byte instruction

 gas/testsuite/gas/riscv/dis-partial-insn-dword.d | 12 ++++++++++
 gas/testsuite/gas/riscv/dis-partial-insn-dword.s |  2 ++
 opcodes/riscv-dis.c                              | 29 +++++++++++++++++++++++-
 3 files changed, 42 insertions(+), 1 deletion(-)
---
base-commit: 815d9a14cbbb3b81843f7566222c87fb22e7255d
change-id: 20250211-fix_gas_abort-6d1e28b4ad46
-- 
- Charlie


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-02-13  0:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-12  5:08 [PATCH 0/2] RISC-V: Fix abort when displaying data and add test Charlie Jenkins
2025-02-12  5:08 ` [PATCH 1/2] RISC-V: Fix abort when displaying .dword Charlie Jenkins
2025-02-12  5:27   ` Jiawei
2025-02-12  7:25   ` Alan Modra
2025-02-12  8:06   ` Jan Beulich
2025-02-12  8:57     ` Nelson Chu
2025-02-12 10:06       ` Jan Beulich
2025-02-12 22:15         ` Maciej W. Rozycki
2025-02-13  0:51           ` Charlie Jenkins
2025-02-13  0:52     ` Charlie Jenkins
2025-02-12  5:08 ` [PATCH 2/2] RISC-V: Add testcase for 6 byte instruction Charlie Jenkins
2025-02-12  5:20 ` [PATCH 0/2] RISC-V: Fix abort when displaying data and add test Nelson Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox