| 1 | QEMU_ARCH = arm |
| 2 | QEMU_MACHINE = sabrelite |
| 3 | QEMU_ARGS += -m 128M |
| 4 | |
| 5 | CFLAGS += -mcpu=cortex-a9 |
| 6 | CFLAGS += -DQEMU_SOC_IMX6 |
| 7 | CFLAGS += -DMICROPY_HW_MCU_NAME='"Cortex-A9"' |
| 8 | # Cortex-A9 should support unaligned-access, but qemu doesn't seem to. |
| 9 | CFLAGS += -mno-unaligned-access |
| 10 | |
| 11 | LDSCRIPT = mcu/arm/imx6.ld |
| 12 | |
| 13 | SRC_BOARD_O = shared/runtime/gchelper_generic.o |
| 14 | |
| 15 | # Use a larger heap than the default so tests run with the native emitter have |
| 16 | # enough memory (because emitted ARM machine code is larger than Thumb2 code). |
| 17 | MICROPY_HEAP_SIZE ?= 163840 |
| 18 | |
| 19 | # It's really armv7a but closest supported value is armv6. |
| 20 | MPY_CROSS_FLAGS += -march=armv6 |
| 21 | |
| 22 | # These tests don't work on Cortex-A9, so exclude them. |
| 23 | RUN_TESTS_ARGS += --exclude 'inlineasm/thumb/(asmbcc|asmbitops|asmconst|asmdiv|asmit|asmspecialregs).py' |