1 Star 0 Fork 18

xingwei-liu/qt5-qtbase

forked from src-anolis-os/qt5-qtbase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
uos-fix-sunway-cpu-support.patch 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
xingwei-liu 提交于 2022-10-12 16:54 . feature: add patchs for DDE
Origin: uniontech
Reviewed-By: zhangfeilong@uniontech.com
Last-Update: 2021-07-28
--- qtbase-opensource-src-5.11.3.35.orig/src/corelib/global/archdetect.cpp
+++ qtbase-opensource-src-5.11.3.35/src/corelib/global/archdetect.cpp
@@ -77,6 +77,8 @@
# define ARCH_PROCESSOR "sparcv9"
#elif defined(Q_PROCESSOR_SPARC)
# define ARCH_PROCESSOR "sparc"
+#elif defined(Q_PROCESSOR_SW_64)
+# define ARCH_PROCESSOR "sw_64"
#else
# define ARCH_PROCESSOR "unknown"
#endif
--- qtbase-opensource-src-5.11.3.35.orig/src/corelib/global/qprocessordetection.h
+++ qtbase-opensource-src-5.11.3.35/src/corelib/global/qprocessordetection.h
@@ -89,6 +89,18 @@
// Q_BYTE_ORDER not defined, use endianness auto-detection
/*
+ SW64 family
+
+ SW64 is little-endian.
+*/
+
+#if defined(__sw_64__)
+# define Q_PROCESSOR_SW_64
+# define Q_BYTE_ORDER Q_LITTLE_ENDIAN
+# define Q_PROCESSOR_WORDSIZE 8
+#endif
+
+/*
ARM family, known revisions: V5, V6, V7, V8
ARM is bi-endian, detect using __ARMEL__ or __ARMEB__, falling back to
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xingwei-liu/qt5-qtbase.git
git@gitee.com:xingwei-liu/qt5-qtbase.git
xingwei-liu
qt5-qtbase
qt5-qtbase
a8

搜索帮助

0d507c66 1850385 C8b1a773 1850385