From 8757eb715ef9da9e1da7704d552210d5bc1b76e2 Mon Sep 17 00:00:00 2001 From: Alessandro Gatti Date: Mon, 7 Jul 2025 22:29:24 +0200 Subject: [PATCH] rp2/mpconfigport: Enable Zba opcodes in RISC-V mode. This commit enables generation of Zba opcodes by the native emitter for the Pico2, as its RISC-V implementation supports both of those extensions (see section 3.8 of the RP2350 datasheet). Signed-off-by: Alessandro Gatti --- ports/rp2/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h index 0c226538cd..e6e8aa076f 100644 --- a/ports/rp2/mpconfigport.h +++ b/ports/rp2/mpconfigport.h @@ -109,6 +109,7 @@ #endif #elif PICO_RISCV #define MICROPY_EMIT_RV32 (1) +#define MICROPY_EMIT_RV32_ZBA (1) #define MICROPY_EMIT_INLINE_RV32 (1) #endif