summaryrefslogtreecommitdiffstatshomepage
path: root/docs/reference
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2024-06-16 20:40:28 +0200
committerDamien George <damien@micropython.org>2024-06-21 15:06:29 +1000
commit99f5659cf5fa84d3b9dc8bbd286315fcf56ad899 (patch)
treefc55cd22a9d5c266d20879f189c87119a0040bf2 /docs/reference
parent8338f663523d675847b8c0b9b92977b76995de8f (diff)
downloadmicropython-99f5659cf5fa84d3b9dc8bbd286315fcf56ad899.tar.gz
micropython-99f5659cf5fa84d3b9dc8bbd286315fcf56ad899.zip
mpy-cross: Add RISC-V RV32IMC support in MPY files.
MPY files can now hold generated RV32IMC native code. This can be accomplished by passing the `-march=rv32imc` flag to mpy-cross. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/mpyfiles.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/reference/mpyfiles.rst b/docs/reference/mpyfiles.rst
index 8e8284928d..be0114701a 100644
--- a/docs/reference/mpyfiles.rst
+++ b/docs/reference/mpyfiles.rst
@@ -58,7 +58,7 @@ If importing an .mpy file fails then try the following:
sys_mpy = sys.implementation._mpy
arch = [None, 'x86', 'x64',
'armv6', 'armv6m', 'armv7m', 'armv7em', 'armv7emsp', 'armv7emdp',
- 'xtensa', 'xtensawin'][sys_mpy >> 10]
+ 'xtensa', 'xtensawin', 'rv32imc'][sys_mpy >> 10]
print('mpy version:', sys_mpy & 0xff)
print('mpy sub-version:', sys_mpy >> 8 & 3)
print('mpy flags:', end='')