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:
parent
2a8f6047ff
commit
28b5244666
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue