Skip to content

Commit 9d0abe2

Browse files
committed
Add support for RISCV64_GENERIC in cmake
1 parent bdb6069 commit 9d0abe2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmake/prebuild.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,15 @@ endif ()
13091309
"#define DTB_DEFAULT_ENTRIES 128\n"
13101310
"#define DTB_SIZE 4096\n"
13111311
"#define L2_ASSOCIATIVE 8\n")
1312+
elseif ("${TCORE}" STREQUAL "RISCV64_GENERIC")
1313+
file(APPEND ${TARGET_CONF_TEMP}
1314+
"#define L1_DATA_SIZE 32768\n"
1315+
"#define L1_DATA_LINESIZE 32\n"
1316+
"#define L2_SIZE 1048576\n"
1317+
"#define L2_LINESIZE 32 \n"
1318+
"#define DTB_DEFAULT_ENTRIES 128\n"
1319+
"#define DTB_SIZE 4096\n"
1320+
"#define L2_ASSOCIATIVE 4\n")
13121321
endif()
13131322
set(SBGEMM_UNROLL_M 8)
13141323
set(SBGEMM_UNROLL_N 4)

0 commit comments

Comments
 (0)