From: Debian Qt/KDE Maintainers Date: Fri, 30 Dec 2022 15:58:05 +0000 (+0000) Subject: Don't use yield on CPUs that might not support it X-Git-Tag: archive/raspbian/6.4.2+dfsg_rc1-3+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8fff68d5c8201738d61c0be687cf589d0ce6bc22;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 37734198..fce26015 100644 --- a/src/corelib/global/qsimd_p.h +++ b/src/corelib/global/qsimd_p.h @@ -401,7 +401,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