Skip to content

Commit 73c1882

Browse files
authored
Merge pull request #4922 from martin-frbg/issue4904-2
Update names of Loongarch64 targets in cmake cross-building
2 parents bc0691a + b0346e7 commit 73c1882

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmake/arch.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if (DYNAMIC_ARCH)
9595
endif ()
9696

9797
if (LOONGARCH64)
98-
set(DYNAMIC_CORE LOONGSONGENERIC LOONGSON2K1000 LOONGSON3R5)
98+
set(DYNAMIC_CORE LA64_GENERIC LA264 LA464)
9999
endif ()
100100

101101
if (EXISTS ${PROJECT_SOURCE_DIR}/config_kernel.h)

cmake/prebuild.cmake

+3-3
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ endif ()
13491349
"#define DTB_DEFAULT_ENTRIES 128\n"
13501350
"#define DTB_SIZE 4096\n"
13511351
"#define L2_ASSOCIATIVE 4\n")
1352-
elseif ("${TCORE}" STREQUAL "LOONGSONGENERIC")
1352+
elseif ("${TCORE}" STREQUAL "LA64_GENERIC")
13531353
file(APPEND ${TARGET_CONF_TEMP}
13541354
"#define DTB_DEFAULT_ENTRIES 64\n")
13551355
set(SGEMM_UNROLL_M 2)
@@ -1364,7 +1364,7 @@ endif ()
13641364
set(CGEMM3M_UNROLL_N 8)
13651365
set(ZGEMM3M_UNROLL_M 2)
13661366
set(ZGEMM3M_UNROLL_N 8)
1367-
elseif ("${TCORE}" STREQUAL "LOONGSON2K1000")
1367+
elseif ("${TCORE}" STREQUAL "LA264")
13681368
file(APPEND ${TARGET_CONF_TEMP}
13691369
"#define DTB_DEFAULT_ENTRIES 64\n")
13701370
set(HAVE_LSX 1)
@@ -1380,7 +1380,7 @@ endif ()
13801380
set(CGEMM3M_UNROLL_N 8)
13811381
set(ZGEMM3M_UNROLL_M 8)
13821382
set(ZGEMM3M_UNROLL_N 4)
1383-
elseif ("${TCORE}" STREQUAL "LOONGSON3R5")
1383+
elseif ("${TCORE}" STREQUAL "LA464")
13841384
file(APPEND ${TARGET_CONF_TEMP}
13851385
"#define DTB_DEFAULT_ENTRIES 64\n")
13861386
set(HAVE_LASX 1)

0 commit comments

Comments
 (0)