public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [RFC PATCH V2 0/4] RISC-V : Support ilp32 abi on rv64 isa
@ 2023-05-19  3:48 Liao Shihua
  2023-05-19  3:48 ` [RFC PATCH 1/4] RISC-V : Remove checking when -march=rv64XX and -mabi=ilp32X Liao Shihua
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Liao Shihua @ 2023-05-19  3:48 UTC (permalink / raw)
  To: binutils
  Cc: kito.cheng, jiawei, palmer, guoren, wuwei2016, shiyulong,
	chenyixuan, Liao Shihua

These patches support ilp32 abi on rv64 isa.
In these patches, I add a new bfd_mach, a new e_flags and a new riscv_gdbarch_features.
The difference between rv64 ilp32 and rv64 lp64 are pointer type_size, long type_size, and 
link spec.

The series kernel support in this link. 
https://lore.kernel.org/linux-riscv/20230518131013.3366406-1-guoren@kernel.org/

Liao Shihua (4):
  Remove checking when -march=rv64XX and -mabi=ilp32X
  Add support for rv64 arch using ilp32 abi
  Add rv64 ilp32 support in disassemble
  Add rv64 ilp32 support in gdb

 bfd/archures.c                                |  1 +
 bfd/bfd-in2.h                                 |  1 +
 bfd/cpu-riscv.c                               |  2 ++
 bfd/elfnn-riscv.c                             | 33 ++++++++++++-------
 binutils/readelf.c                            |  3 ++
 gas/config/tc-riscv.c                         | 23 ++++++++++---
 .../gas/riscv/mabi-fail-rv64iq-ilp32.d        |  3 --
 .../gas/riscv/mabi-fail-rv64iq-ilp32.l        |  2 --
 gdb/arch/riscv.h                              | 10 +++++-
 gdb/riscv-tdep.c                              | 20 ++++++++---
 include/elf/riscv.h                           |  3 ++
 opcodes/riscv-dis.c                           |  6 ++--
 12 files changed, 78 insertions(+), 29 deletions(-)
 delete mode 100644 gas/testsuite/gas/riscv/mabi-fail-rv64iq-ilp32.d
 delete mode 100644 gas/testsuite/gas/riscv/mabi-fail-rv64iq-ilp32.l

-- 
2.38.1.windows.1


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

end of thread, other threads:[~2023-05-25 15:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-19  3:48 [RFC PATCH V2 0/4] RISC-V : Support ilp32 abi on rv64 isa Liao Shihua
2023-05-19  3:48 ` [RFC PATCH 1/4] RISC-V : Remove checking when -march=rv64XX and -mabi=ilp32X Liao Shihua
2023-05-19  6:25   ` Jan Beulich
2023-05-19  3:48 ` [RFC PATCH 2/4] RISC-V : Add support for rv64 arch using ilp32 abi Liao Shihua
2023-05-19  6:33   ` Jan Beulich
2023-05-19  6:58     ` shihua
2023-05-19  3:48 ` [RFC PATCH 3/4] RISC-V : Add rv64 ilp32 support in disassemble Liao Shihua
2023-05-25 15:35   ` Guo Ren
2023-05-19  3:48 ` [RFC PATCH 4/4] gdb/riscv : Add rv64 ilp32 support in gdb Liao Shihua

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