From: Debian Qt/KDE Maintainers Date: Fri, 19 Aug 2022 01:08:54 +0000 (+0100) Subject: Don't use yield on CPUs that might not support it X-Git-Tag: archive/raspbian/6.3.1+dfsg-9+rpi1~1^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=168c1c38a239860ec4f0dd6c1ca5f3b7cdb843de;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 d270d09f..67f6733e 100644 --- a/src/corelib/global/qsimd_p.h +++ b/src/corelib/global/qsimd_p.h @@ -428,7 +428,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