extmod/modplatform: Distinguish RISC-V 64 from RISC-V 32.

This commit lets the platform module report a more accurate architecture
name when running on a RISC-V 64 bits platform.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
Alessandro Gatti
2024-12-04 22:45:28 +01:00
committed by Damien George
parent 2a8f6047ff
commit 28b5244666

View File

@@ -48,7 +48,11 @@
#elif defined(__xtensa__)
#define MICROPY_PLATFORM_ARCH "xtensa"
#elif defined(__riscv)
#if __riscv_xlen == 64
#define MICROPY_PLATFORM_ARCH "riscv64"
#else
#define MICROPY_PLATFORM_ARCH "riscv"
#endif
#else
#define MICROPY_PLATFORM_ARCH ""
#endif