This commit adds support for writing inline assembler functions when targeting a RV32IMC processor. Given that this takes up a bit of rodata space due to its large instruction decoding table and its extensive error messages, it is enabled by default only on offline targets such as mpy-cross and the qemu port. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
17 lines
402 B
Makefile
17 lines
402 B
Makefile
QEMU_ARCH = riscv32
|
|
QEMU_MACHINE = virt
|
|
|
|
CFLAGS += -DQEMU_SOC_VIRT
|
|
CFLAGS += -DMICROPY_HW_MCU_NAME='"$(RV32_ARCH)"'
|
|
|
|
LDSCRIPT = mcu/rv32/virt.ld
|
|
|
|
SRC_BOARD_O += shared/runtime/gchelper_native.o shared/runtime/gchelper_rv32i.o
|
|
|
|
MPY_CROSS_FLAGS += -march=rv32imc
|
|
|
|
# These Thumb tests don't run on RV32, so exclude them.
|
|
RUN_TESTS_ARGS = --exclude 'inlineasm/thumb'
|
|
|
|
RUN_NATMODTESTS_ARGS = --arch rv32imc
|