Browse Source

Add support for RISCV64_GENERIC in cmake

tags/v0.3.28^2
Jaap Aarts 1 year ago
parent
commit
9d0abe2d26
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      cmake/prebuild.cmake

+ 9
- 0
cmake/prebuild.cmake View File

@@ -1309,6 +1309,15 @@ endif ()
"#define DTB_DEFAULT_ENTRIES 128\n"
"#define DTB_SIZE 4096\n"
"#define L2_ASSOCIATIVE 8\n")
elseif ("${TCORE}" STREQUAL "RISCV64_GENERIC")
file(APPEND ${TARGET_CONF_TEMP}
"#define L1_DATA_SIZE 32768\n"
"#define L1_DATA_LINESIZE 32\n"
"#define L2_SIZE 1048576\n"
"#define L2_LINESIZE 32 \n"
"#define DTB_DEFAULT_ENTRIES 128\n"
"#define DTB_SIZE 4096\n"
"#define L2_ASSOCIATIVE 4\n")
endif()
set(SBGEMM_UNROLL_M 8)
set(SBGEMM_UNROLL_N 4)


Loading…
Cancel
Save