From 5e93a5806be7cd100fe02d92d962b010b8bcfa2d Mon Sep 17 00:00:00 2001 From: Piotr Tworek Date: Mon, 16 Nov 2020 00:48:37 +0100 Subject: [PATCH] base-hw: Use softfp ABI on virt_qemu ARMv7. The soft ABI implies purely software floating point implementation. This is not the case for Genode however. For example core's exception_vector.S uses vmsr instruction. This builds fine with with GCC based toolchain, but clang with integrated-as complains: src/core/spec/arm/exception_vector.S:122:2: error: instruction requires: VFP2 vmsr fpexc, r1 ^ Fix this by passing softfp to mfloat-abi command on ARMv7. This allows usage of FP HW, but implies soft-floating point ABI. Issue #4421 --- repos/base-hw/lib/mk/spec/arm_v7/core-hw-virt_qemu.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/base-hw/lib/mk/spec/arm_v7/core-hw-virt_qemu.mk b/repos/base-hw/lib/mk/spec/arm_v7/core-hw-virt_qemu.mk index 197a7a5370..477b70eb93 100644 --- a/repos/base-hw/lib/mk/spec/arm_v7/core-hw-virt_qemu.mk +++ b/repos/base-hw/lib/mk/spec/arm_v7/core-hw-virt_qemu.mk @@ -16,6 +16,6 @@ SRC_S += spec/arm_v7/virtualization/exception_vector.s NR_OF_CPUS = 2 -CC_MARCH = -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv3 -mfloat-abi=soft +CC_MARCH = -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv3 -mfloat-abi=softfp include $(call select_from_repositories,lib/mk/spec/cortex_a15/core-hw.inc)