Skip to content

Commit

Permalink
EF_RISCV_N32: Add some supplement descriptions
Browse files Browse the repository at this point in the history
 - Add RV64GQ systems also could use ILP32* ABIs.
 - Correct C/{Cpp} type sizes and alignments descriptions.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Liao Shihua <shihua@iscas.ac.cn>
  • Loading branch information
guoren83 authored and Liaoshihua committed Nov 6, 2024
1 parent 378c166 commit 6a9cb9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions riscv-cc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ on RV64G:: <<abi-lp64d,LP64D>>
NOTE: Although RV64GQ systems can technically use <<abi-lp64q,LP64Q>>, it is
strongly recommended to use LP64D on general-purpose RV64GQ systems for
compatibility with standard RV64G software.
RV64GQ systems also could use ILP32* ABIs.

== Calling Convention for System Calls

Expand All @@ -533,7 +534,7 @@ There are two conventions for C/{Cpp} type sizes and alignments.
ILP32, ILP32F, ILP32D, and ILP32E:: Use the following type sizes and
alignments (based on the ILP32 convention):
+
.C/{Cpp} type sizes and alignments for RV32
.C/{Cpp} type sizes and alignments for ILP32
[cols="4,>2,>3,4"]
[width=60%]
|===
Expand All @@ -559,7 +560,7 @@ alignments (based on the ILP32 convention):
LP64, LP64F, LP64D, and LP64Q:: Use the following type sizes and
alignments (based on the LP64 convention):
+
.C/{Cpp} type sizes and alignments for RV64
.C/{Cpp} type sizes and alignments for LP64
[cols="4,>2,>3,4"]
[width=60%]
|===
Expand Down

0 comments on commit 6a9cb9c

Please sign in to comment.