public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: [PATCH 0/2] RISC-V: Add ratified 'E' base ISA support with draft ABIs
@ 2023-07-25  3:52 jiawei
  2023-07-25  3:59 ` Tsukasa OI
  0 siblings, 1 reply; 3+ messages in thread
From: jiawei @ 2023-07-25  3:52 UTC (permalink / raw)
  To: Tsukasa OI; +Cc: binutils, Nelson Chu, palmer

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

> Hi,

> 
> This patch set reflects the most of ratified 'E' base ISAs and
> draft/pre-draft RVE ABIs, ILP32E and LP64E.

> 
> RV32E / RV64E (ratified): The latest RISC-V ISA Manual
> <https://github.com/riscv/riscv-isa-manual/releases/tag/riscv-isa-release-1239329-2023-05-23>
> ILP32E (draft): RISCV ABIs Specification version 1.0
> <https://github.com/riscv-non-isa/riscv-elf-psabi-doc/releases/tag/v1.0>
> LP64E (pre-draft): Submission to add RVE API corresponding RV64E
> <https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/299>
> 
> Adding pre-draft LP64E would be a problem on GCC but I bet not on Binutils
> (ELF flags [to handle on Binutils/GAS] are not very detailed).
> 
> Note that this patch set does not reflect the version number of the 'E' base
> ISA (ratified version 2.0) because the latest ratified specification,
> "20191213", comes with the draft version 1.9 and adding the version 2.0 with
> ISA_SPEC_CLASS_DRAFT does not work (due to the default value of
> `DEFAULT_RISCV_ISA_SPEC'; note that it cannot be set to "draft").
> 
> I think the next unprivileged ISA specification release is the best timing
> to add 'E' version 2.0 (along with new ISA_SPEC_CLASS_20??????).
> 
> Thanks,
> Tsukasa
> 

Hi Tsukasa,




There was an earlier RFC submission by Palmer Dabbelt one years ago,
https://sourceware.org/pipermail/binutils/2022-July/121785.html
would you like to contact Palmer to move forward with this work?

> 
> 
> Tsukasa OI (2):
>   RISC-V: Remove RV64E conflict
>   RISC-V: Add "lp64e" ABI support
> 
>  bfd/elfxx-riscv.c                               | 7 -------
>  gas/config/tc-riscv.c                           | 4 +++-
>  gas/doc/c-riscv.texi                            | 5 ++---
>  gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l | 2 +-
>  gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l | 2 +-
>  gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64q.l | 2 +-
>  gas/testsuite/gas/riscv/march-fail-base-02.d    | 3 ---
>  gas/testsuite/gas/riscv/march-fail-base-02.l    | 2 --
>  8 files changed, 8 insertions(+), 19 deletions(-)
>  delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.d
>  delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.l
> 
> 
> base-commit: 3dfee72010248aca5932a27b4c34d3b79ab9f057
> -- 
> 2.41.0






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

* Re: [PATCH 0/2] RISC-V: Add ratified 'E' base ISA support with draft ABIs
  2023-07-25  3:52 [PATCH 0/2] RISC-V: Add ratified 'E' base ISA support with draft ABIs jiawei
@ 2023-07-25  3:59 ` Tsukasa OI
  0 siblings, 0 replies; 3+ messages in thread
From: Tsukasa OI @ 2023-07-25  3:59 UTC (permalink / raw)
  To: jiawei, Palmer Dabbelt; +Cc: binutils

On 2023/07/25 12:52, jiawei@iscas.ac.cn wrote:
>> Hi,
> 
>> 
>> This patch set reflects the most of ratified 'E' base ISAs and
>> draft/pre-draft RVE ABIs, ILP32E and LP64E.
> 
>> 
>> RV32E / RV64E (ratified): The latest RISC-V ISA Manual
>>
> <https://github.com/riscv/riscv-isa-manual/releases/tag/riscv-isa-release-1239329-2023-05-23>
>> ILP32E (draft): RISCV ABIs Specification version 1.0
>> <https://github.com/riscv-non-isa/riscv-elf-psabi-doc/releases/tag/v1.0>
>> LP64E (pre-draft): Submission to add RVE API corresponding RV64E
>> <https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/299>
>> 
>> Adding pre-draft LP64E would be a problem on GCC but I bet not on Binutils
>> (ELF flags [to handle on Binutils/GAS] are not very detailed).
>> 
>> Note that this patch set does not reflect the version number of the
> 'E' base
>> ISA (ratified version 2.0) because the latest ratified specification,
>> "20191213", comes with the draft version 1.9 and adding the version
> 2.0 with
>> ISA_SPEC_CLASS_DRAFT does not work (due to the default value of
>> `DEFAULT_RISCV_ISA_SPEC'; note that it cannot be set to "draft").
>> 
>> I think the next unprivileged ISA specification release is the best timing
>> to add 'E' version 2.0 (along with new ISA_SPEC_CLASS_20??????).
>> 
>> Thanks,
>> Tsukasa
>> 
> 
> Hi Tsukasa,
> 
> 
> There was an earlier RFC submission by Palmer Dabbelt one years ago,
> 
> https://sourceware.org/pipermail/binutils/2022-July/121785.html 
> 
> would you like to contact Palmer to move forward with this work?

Thanks for pointing out!

That looks good and... both patch sets have a room for improvements
(both patch sets have something missing in another).
We could combine Palmer's one and mine to make one better patch set.

What do you think, Palmer?

Thanks,
Tsukasa

> 
> 
>> 
>> 
>> Tsukasa OI (2):
>>   RISC-V: Remove RV64E conflict
>>   RISC-V: Add "lp64e" ABI support
>> 
>>  bfd/elfxx-riscv.c                               | 7 -------
>>  gas/config/tc-riscv.c                           | 4 +++-
>>  gas/doc/c-riscv.texi                            | 5 ++---
>>  gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l | 2 +-
>>  gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l | 2 +-
>>  gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64q.l | 2 +-
>>  gas/testsuite/gas/riscv/march-fail-base-02.d    | 3 ---
>>  gas/testsuite/gas/riscv/march-fail-base-02.l    | 2 --
>>  8 files changed, 8 insertions(+), 19 deletions(-)
>>  delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.d
>>  delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.l
>> 
>> 
>> base-commit: 3dfee72010248aca5932a27b4c34d3b79ab9f057
>> -- 
>> 2.41.0
> 
> 

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

* [PATCH 0/2] RISC-V: Add ratified 'E' base ISA support with draft ABIs
@ 2023-07-25  2:26 Tsukasa OI
  0 siblings, 0 replies; 3+ messages in thread
From: Tsukasa OI @ 2023-07-25  2:26 UTC (permalink / raw)
  To: Tsukasa OI, Nelson Chu, Kito Cheng, Palmer Dabbelt; +Cc: binutils

Hi,

This patch set reflects the most of ratified 'E' base ISAs and
draft/pre-draft RVE ABIs, ILP32E and LP64E.

RV32E / RV64E (ratified): The latest RISC-V ISA Manual
<https://github.com/riscv/riscv-isa-manual/releases/tag/riscv-isa-release-1239329-2023-05-23>
ILP32E (draft): RISCV ABIs Specification version 1.0
<https://github.com/riscv-non-isa/riscv-elf-psabi-doc/releases/tag/v1.0>
LP64E (pre-draft): Submission to add RVE API corresponding RV64E
<https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/299>

Adding pre-draft LP64E would be a problem on GCC but I bet not on Binutils
(ELF flags [to handle on Binutils/GAS] are not very detailed).

Note that this patch set does not reflect the version number of the 'E' base
ISA (ratified version 2.0) because the latest ratified specification,
"20191213", comes with the draft version 1.9 and adding the version 2.0 with
ISA_SPEC_CLASS_DRAFT does not work (due to the default value of
`DEFAULT_RISCV_ISA_SPEC'; note that it cannot be set to "draft").

I think the next unprivileged ISA specification release is the best timing
to add 'E' version 2.0 (along with new ISA_SPEC_CLASS_20??????).

Thanks,
Tsukasa




Tsukasa OI (2):
  RISC-V: Remove RV64E conflict
  RISC-V: Add "lp64e" ABI support

 bfd/elfxx-riscv.c                               | 7 -------
 gas/config/tc-riscv.c                           | 4 +++-
 gas/doc/c-riscv.texi                            | 5 ++---
 gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l | 2 +-
 gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l | 2 +-
 gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64q.l | 2 +-
 gas/testsuite/gas/riscv/march-fail-base-02.d    | 3 ---
 gas/testsuite/gas/riscv/march-fail-base-02.l    | 2 --
 8 files changed, 8 insertions(+), 19 deletions(-)
 delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.d
 delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.l


base-commit: 3dfee72010248aca5932a27b4c34d3b79ab9f057
-- 
2.41.0


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

end of thread, other threads:[~2023-07-25  3:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25  3:52 [PATCH 0/2] RISC-V: Add ratified 'E' base ISA support with draft ABIs jiawei
2023-07-25  3:59 ` Tsukasa OI
  -- strict thread matches above, loose matches on Subject: below --
2023-07-25  2:26 Tsukasa OI

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