[RFC,V2,0/4] RISC-V : Support ilp32 abi on rv64 isa

Message ID 20230519034835.664-1-shihua@iscas.ac.cn
Headers
Series RISC-V : Support ilp32 abi on rv64 isa |

Message

Liao Shihua May 19, 2023, 3:48 a.m. UTC
  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