mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 04:51:12 +02:00
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:
committed by
Damien George
parent
2a8f6047ff
commit
28b5244666
@@ -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
|
||||
|
Reference in New Issue
Block a user