From 56e5f1ae1383a99d5b7f8c52deb85bda8fe9a5af Mon Sep 17 00:00:00 2001 From: YuzukiTsuru Date: Mon, 25 Dec 2023 19:04:27 +0800 Subject: [PATCH] [rvf] fix new Xuantie toolchain mcpu --- board/100ask-t113i/load_c906/c906_firmware/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/100ask-t113i/load_c906/c906_firmware/CMakeLists.txt b/board/100ask-t113i/load_c906/c906_firmware/CMakeLists.txt index f9109496..226efb53 100644 --- a/board/100ask-t113i/load_c906/c906_firmware/CMakeLists.txt +++ b/board/100ask-t113i/load_c906/c906_firmware/CMakeLists.txt @@ -9,7 +9,7 @@ set(CMAKE_CXX_COMPILER "${RISCV_ROOT_PATH}/bin/riscv64-unknown-linux-gnu-g++") set(CMAKE_SYSROOT "${RISCV_ROOT_PATH}/sysroot") -set(CMAKE_COMMON_FLAGS "-march=rv64gvxthead -mabi=lp64d -mcmodel=medany -fno-stack-protector") +set(CMAKE_COMMON_FLAGS "-mcpu=c906fdv -mcmodel=medany -fno-stack-protector") set(CMAKE_DISABLE_WARN_FLAGS "-Wint-to-pointer-cast -Wimplicit-function-declaration") set(CMAKE_C_FLAGS "${CMAKE_DISABLE_WARN_FLAGS} ${CMAKE_C_FLAGS} ${CMAKE_COMMON_FLAGS}" CACHE STRING "c flags")