1 Star 0 Fork 4

streamlet_hy/atlas

forked from OpenCloudOS Stream/atlas 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-modify-atlas-build-error-on-loongarch64.patch 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
streamlet_hy 提交于 2024-10-15 01:17 . fix build error on loongarch64
From bee4f683a16c282ecce10b62ee2b23388b68a1e3 Mon Sep 17 00:00:00 2001
From: Huang Yang <huangyang@loongson.cn>
Date: Tue, 15 Oct 2024 01:09:30 +0000
Subject: [PATCH] modify atlas build error on loongarch64
---
CONFIG/src/backend/archinfo_linux.c | 4 ++--
CONFIG/src/backend/probe_gas_loongarch64.S | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/CONFIG/src/backend/archinfo_linux.c b/CONFIG/src/backend/archinfo_linux.c
index c426fe3..4113b2c 100644
--- a/CONFIG/src/backend/archinfo_linux.c
+++ b/CONFIG/src/backend/archinfo_linux.c
@@ -340,8 +340,8 @@ enum MACHTYPE ProbeArch()
free(res);
}
break;
- case LOONGARCH64:
- res = atlsys_1L(NULL, "fgrep 'ISA' /proc/cpuinfo", 0, 0);
+ case AFLOONGARCH64:
+ res = atlsys_1L(NULL, "grep -F ISA /proc/cpuinfo", 0, 0);
if (res)
{
if (strstr(res, "loongarch")) mach = LOONGARCH64;
diff --git a/CONFIG/src/backend/probe_gas_loongarch64.S b/CONFIG/src/backend/probe_gas_loongarch64.S
index 6c55103..bd204e4 100644
--- a/CONFIG/src/backend/probe_gas_loongarch64.S
+++ b/CONFIG/src/backend/probe_gas_loongarch64.S
@@ -9,7 +9,7 @@
.globl ATL_asmdecor(asm_probe)
.type ATL_asmdecor(asm_probe), %function
ATL_asmdecor(asm_probe):
- slli.w a5,a0,0x1
- add.w a0,a0,a5
+ slli.w $t0,$a0,0x1
+ add.w $a0,$a0,$t0
ret
.size ATL_asmdecor(asm_probe),.-ATL_asmdecor(asm_probe)
--
2.41.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/streamlet_hy/atlas.git
git@gitee.com:streamlet_hy/atlas.git
streamlet_hy
atlas
atlas
master

搜索帮助