public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/1] riscv: Ensure LE instruction fetching
@ 2023-06-20 11:46 Branislav Brzak
  2023-06-20 11:47 ` Branislav Brzak
  0 siblings, 1 reply; 7+ messages in thread
From: Branislav Brzak @ 2023-06-20 11:46 UTC (permalink / raw)
  To: gdb-patches; +Cc: Dragoslav Sicarov, Djordje Todorovic

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

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(-)


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

end of thread, other threads:[~2023-07-06 16:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-20 11:46 [PATCH 0/1] riscv: Ensure LE instruction fetching Branislav Brzak
2023-06-20 11:47 ` Branislav Brzak
2023-06-20 14:08   ` Tom Tromey
2023-06-20 14:21     ` Branislav Brzak
2023-06-20 16:42       ` Tom Tromey
2023-06-21  9:11         ` Branislav Brzak
2023-07-06 16:13           ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).