add loongarch cmake fix and chinese document
@@ -13,7 +13,6 @@ option(NOLOADADDR "Set to ON to avoid fixing the load address of Box64" OFF)
option(NOGIT "Set to ON if not building from a git clone repo (like when building from a zip download from github)" ${NOGIT})
if(LARCH64)
set(LD80BITS OFF CACHE BOOL "")
- message(WARNING ${LD80BITS})
set(NOALIGN OFF CACHE BOOL "")
set(ARM_DYNAREC OFF CACHE BOOL "")
endif()
@@ -72,8 +71,8 @@ elseif(TEGRAX1)
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a57+crypto")
elseif(LARCH64)
add_definitions(-DLARCH64)
- add_definitions(-pipe)
- set(CMAKE_ASM_FLAGS "-pipe")
+ add_definitions(-pipe -march=loongarch64)
+ set(CMAKE_ASM_FLAGS "-pipe -march=loongarch64")
elseif(ARM_DYNAREC)
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto")
endif()
