From b1bc6018d7445b410d6902de88d5acb460f5855f Mon Sep 17 00:00:00 2001 From: Alvin Chang Date: Thu, 2 Apr 2026 13:56:55 +0800 Subject: [PATCH] platforms: Add RISC-V 32-bit and 64-bit platform files Refer to RISC-V calling conventions [1], this commit adds platform files for RISC-V 32-bit and 64-bit plarforms. [1]: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-cc.adoc#cc-type-sizes-and-alignments --- platforms/riscv32.xml | 18 ++++++++++++++++++ platforms/riscv64.xml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 platforms/riscv32.xml create mode 100644 platforms/riscv64.xml diff --git a/platforms/riscv32.xml b/platforms/riscv32.xml new file mode 100644 index 00000000000..1ba1f7e431d --- /dev/null +++ b/platforms/riscv32.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 4 + 4 + 8 + 4 + 8 + 16 + 4 + 4 + 4 + + diff --git a/platforms/riscv64.xml b/platforms/riscv64.xml new file mode 100644 index 00000000000..818c2841580 --- /dev/null +++ b/platforms/riscv64.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 4 + 8 + 8 + 4 + 8 + 16 + 8 + 8 + 4 + +