From 180eb75f097672ca51b7c985dfe1292736e5644c Mon Sep 17 00:00:00 2001 From: Martin Kojtal <--global> Date: Mon, 26 Jul 2021 15:23:45 +0100 Subject: [PATCH] cmsis: patch fpu in asm for armcc5 For FPU, use armasm to select fpu selection. This will be fixed upstream in the next version of CMSIS. Meanwhile, we use our local patch. Taken from --cpu selection for armasm: --cpu | {FPU} Cortex-M4.fp.sp | VFPv4_SP_D16 Cortex-M7.fp.sp | FPv5-SP Cortex-M7.fp.dp | FPv5_D16 Tracking issue: https://github.com/ARM-software/CMSIS_5/issues/1266 --- .../RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/irq_cm4f.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/irq_cm4f.S b/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/irq_cm4f.S index 0c8148f978b..4905a35b73b 100644 --- a/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/irq_cm4f.S +++ b/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/irq_cm4f.S @@ -28,7 +28,7 @@ RTX_STACK_CHECK EQU 0 #endif - IF ({FPU}="FPv4-SP") + IF ({FPU}="FPv4-SP") || ({FPU}="VFPv4_SP_D16") || ({FPU}="FPv5-SP") || ({FPU}="FPv5_D16") FPU_USED EQU 1 ELSE FPU_USED EQU 0