qt6-base/debian/patches/armel-noyield.patch
Lisandro Damián Nicanor Pérez Meyer 182699f2da Refresh patches.
2023-11-02 22:30:10 -03:00

19 lines
581 B
Diff

Description: Don't use yield on CPUs that might not support it
---
src/corelib/global/qsimd_p.h | 2 ++
1 file changed, 2 insertions(+)
--- a/src/corelib/global/qsimd_p.h
+++ b/src/corelib/global/qsimd_p.h
@@ -415,7 +415,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