kumquat-buildroot/package/pipewire/0002-cpu-disable-VFP-asm-when-not-available.patch

31 lines
938 B
Diff
Raw Normal View History

From 2cddd4a775c145570f4a8a30d28b57f551d43206 Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
Date: Mon, 25 Oct 2021 16:32:16 +0200
Subject: [PATCH] cpu: disable VFP asm when not available
Fixes #1746
[Retrieved from:
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/2cddd4a775c145570f4a8a30d28b57f551d43206]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
spa/plugins/support/cpu-arm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spa/plugins/support/cpu-arm.c b/spa/plugins/support/cpu-arm.c
index c07711f70..fe6222f7c 100644
--- a/spa/plugins/support/cpu-arm.c
+++ b/spa/plugins/support/cpu-arm.c
@@ -143,7 +143,7 @@ static int arm_zero_denormals(void *object, bool enable)
"msr fpcr, %0 \n"
"isb \n"
: "=r"(cw)::"memory");
-#else
+#elif (defined(__VFP_FP__) && !defined(__SOFTFP__))
uint32_t cw;
if (enable)
__asm__ __volatile__(
--
GitLab