summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2025-07-07 22:29:24 +0200
committerAlessandro Gatti <a.gatti@frob.it>2025-09-19 15:52:20 +0200
commit8757eb715ef9da9e1da7704d552210d5bc1b76e2 (patch)
tree136acb17c4bd23610454c7cc0211cf10c607742a
parent1fea1e20db7f677db5fb10b1e0becd7713755bb6 (diff)
rp2/mpconfigport: Enable Zba opcodes in RISC-V mode.HEADorigin/masterorigin/HEADmaster
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 <a.gatti@frob.it>
-rw-r--r--ports/rp2/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h
index 0c226538c..e6e8aa076 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