From da7ee6c8fa7c7ec96734a7ee6091d5e1926b13c8 Mon Sep 17 00:00:00 2001 From: Vadim Godunko Date: Mon, 3 Jun 2024 18:44:17 +0400 Subject: [PATCH] Fix selection of floating point support packages for `light-cortex-m*` --- arm/cortexm.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arm/cortexm.py b/arm/cortexm.py index 59bdb4d4..81b4cd5d 100644 --- a/arm/cortexm.py +++ b/arm/cortexm.py @@ -1282,6 +1282,10 @@ class CortexM3(ArmV7MTarget): def name(self): return "cortex-m3" + @property + def has_single_precision_fpu(self): + return False + @property def has_fpu(self): return True @@ -1305,6 +1309,10 @@ class CortexM4(ArmV7MTarget): def name(self): return "cortex-m4" + @property + def has_single_precision_fpu(self): + return False + @property def has_fpu(self): return True @@ -1328,6 +1336,10 @@ class CortexM4F(CortexM4): def name(self): return "cortex-m4f" + @property + def has_single_precision_fpu(self): + return True + @property def compiler_switches(self): # The required compiler switches @@ -1374,6 +1386,10 @@ class CortexM7DF(CortexM7F): def name(self): return "cortex-m7df" + @property + def has_double_precision_fpu(self): + return True + @property def compiler_switches(self): # The required compiler switches