[PATCH 0/1] riscv: Ensure LE instruction fetching

Branislav Brzak Branislav.Brzak@Syrmia.com
Tue Jun 20 11:43:07 GMT 2023


Currently riscv gdb code looks at arch byte order
when fetching instructions. This works when the
target is LE, but on BE arch it will byte swap the
instruction, while the riscv spec defines all
instructions are LE encoded regardless of
system memory endianess.

Branislav Brzak (1):
gdb/riscv: Ensure LE instruction fetching

gdb/riscv-tdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-riscv-tdep.c-riscv_insn-fetch_instruction-Always-fet.patch
Type: text/x-patch
Size: 794 bytes
Desc: 0001-riscv-tdep.c-riscv_insn-fetch_instruction-Always-fet.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20230620/666ea364/attachment.bin>


More information about the Binutils mailing list