mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01: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__)
|
#elif defined(__xtensa__)
|
||||||
#define MICROPY_PLATFORM_ARCH "xtensa"
|
#define MICROPY_PLATFORM_ARCH "xtensa"
|
||||||
#elif defined(__riscv)
|
#elif defined(__riscv)
|
||||||
|
#if __riscv_xlen == 64
|
||||||
|
#define MICROPY_PLATFORM_ARCH "riscv64"
|
||||||
|
#else
|
||||||
#define MICROPY_PLATFORM_ARCH "riscv"
|
#define MICROPY_PLATFORM_ARCH "riscv"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define MICROPY_PLATFORM_ARCH ""
|
#define MICROPY_PLATFORM_ARCH ""
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user