You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
544 B

Description: Don't use yield on CPUs that might not support it
--- qt6-base-6.3.1+dfsg.orig/src/corelib/global/qsimd_p.h
+++ qt6-base-6.3.1+dfsg/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