From: Debian Qt/KDE Maintainers Date: Tue, 16 Jul 2024 19:53:21 +0000 (+0200) Subject: Don't use yield on CPUs that might not support it X-Git-Tag: archive/raspbian/6.6.2+dfsg-10+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2b99272e168ac3fc360b54e202c345a5627701d4;p=qt6-base.git Don't use yield on CPUs that might not support it Gbp-Pq: Name armel-noyield.patch --- diff --git a/src/corelib/global/qsimd_p.h b/src/corelib/global/qsimd_p.h index 3a5cadaf..196138ea 100644 --- a/src/corelib/global/qsimd_p.h +++ b/src/corelib/global/qsimd_p.h @@ -417,7 +417,9 @@ static inline void qYieldCpu() https://stackoverflow.com/a/70076751/134841 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105416 */ +# if !defined(Q_CC_GNU) || (__ARM_ARCH >= 7) asm volatile("yield"); /* this works everywhere */ +# endif # else __yield(); /* this is what should work everywhere */ # endif