Skip to content

Commit 58ed01a

Browse files
committed
rp2/mpconfigport: Enable RV32I native emitter on RISCV variants.
Signed-off-by: Damien George <[email protected]>
1 parent 9d287f8 commit 58ed01a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ports/rp2/mpconfigport.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,16 @@
7878

7979
// MicroPython emitters
8080
#define MICROPY_PERSISTENT_CODE_LOAD (1)
81+
#if PICO_ARM
8182
#define MICROPY_EMIT_THUMB (1)
82-
#define MICROPY_EMIT_THUMB_ARMV7M (0)
8383
#define MICROPY_EMIT_INLINE_THUMB (1)
84+
#if PICO_RP2040
85+
#define MICROPY_EMIT_THUMB_ARMV7M (0)
8486
#define MICROPY_EMIT_INLINE_THUMB_FLOAT (0)
87+
#endif
88+
#elif PICO_RISCV
89+
#define MICROPY_EMIT_RV32 (1)
90+
#endif
8591

8692
// Optimisations
8793
#define MICROPY_OPT_COMPUTED_GOTO (1)

0 commit comments

Comments
 (0)