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>
16 lines
410 B
Makefile
16 lines
410 B
Makefile
QEMU_ARCH = arm
|
|
QEMU_MACHINE = mps2-an385
|
|
|
|
CFLAGS += -mthumb -mcpu=cortex-m3 -mfloat-abi=soft
|
|
CFLAGS += -DQEMU_SOC_MPS2
|
|
CFLAGS += -DMICROPY_HW_MCU_NAME='"Cortex-M3"'
|
|
|
|
LDSCRIPT = mcu/arm/mps2.ld
|
|
|
|
SRC_BOARD_O = shared/runtime/gchelper_native.o shared/runtime/gchelper_thumb2.o
|
|
|
|
MPY_CROSS_FLAGS += -march=armv7m
|
|
|
|
# These RV32 tests don't run on Thumb, so exclude them.
|
|
RUN_TESTS_ARGS = --exclude 'inlineasm/rv32'
|