From 1e44a93c877616b2432368b28102e75f39b6217b Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 20 May 2024 10:08:27 +0200 Subject: [PATCH] Removed all traces of PAGE8K, PAGE16K and PAGE64K as it's now detected in runtime --- CMakeLists.txt | 27 --------------------------- docs/COMPILE.md | 3 +-- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fb55a4d..7f9e5d6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,6 @@ SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") option(RPI3ARM64 "Set to ON if targeting an RaspberryPI3 device with multiarch arm64 and armhf" ${RPI3ARM64}) option(RPI4ARM64 "Set to ON if targeting an RaspberryPI4 device with multiarch arm64 and armhf" ${RPI4ARM64}) option(RPI5ARM64 "Set to ON if targeting an RaspberryPi5 device with multiarch arm64 and armhf" ${RPI5ARM64}) -option(RPI5ARM64PS16K "Set to ON if targeting an RaspberryPi5 device with multiarch arm64, armhf, and 16k pages" ${RPI5ARM64PS16K}) option(RK3326 "Set to ON if targeting an Rockchip RK3326 based device" ${RK3326}) option(RK3399 "Set to ON if targeting an Rockchip RK3399 based device" ${RK3399}) option(RK3588 "Set to ON if targeting an Rockchip RK3588(S) based device" ${RK3588}) @@ -56,7 +55,6 @@ if(RV64) set(ARM_DYNAREC OFF CACHE BOOL "") set(RV64_DYNAREC ON CACHE BOOL "") set(LARCH64_DYNAREC OFF CACHE BOOL "") - set(PAGE16K OFF CACHE BOOL "") endif() if(PPC64LE) set(LD80BITS OFF CACHE BOOL "") @@ -64,10 +62,6 @@ if(PPC64LE) set(ARM_DYNAREC OFF CACHE BOOL "") set(RV64_DYNAREC OFF CACHE BOOL "") set(LARCH64_DYNAREC OFF CACHE BOOL "") - set(PAGE16K OFF CACHE BOOL "") -endif() -if(RPI5ARM64PS16K) - set(RPI5ARM64 ON CACHE BOOL "") endif() if(RK3399 OR RK3588 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RPI5ARM64 OR RK3326 OR TEGRAX1 OR TEGRA_T194 OR TEGRA_T234 OR PHYTIUM OR SD845 OR SD888 OR SD8G2 OR LX2160A OR M1 OR ARM64 OR ADLINK) set(LD80BITS OFF CACHE BOOL "") @@ -76,22 +70,15 @@ if(RK3399 OR RK3588 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RPI5ARM64 OR RK3326 set(RV64_DYNAREC OFF CACHE BOOL "") set(LARCH64_DYNAREC OFF CACHE BOOL "") endif() -if(RK3399 OR RK3588 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RK3326 OR TEGRAX1 OR TEGRA_T194 OR TEGRA_T234 OR PHYTIUM OR SD845 OR SD888 OR SD8G2 OR LX2160A OR ADLINK) - set(PAGE16K OFF CACHE BOOL "") -endif() if(RK3399 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RPI5ARM64) set(SAVE_MEM ON CACHE BOOL "") endif() if(RK3588) set(BAD_SIGNAL ON CACHE BOOL "") endif() -if(M1 OR LARCH64 OR RPI5ARM64PS16K) - set(PAGE16K ON CACHE BOOL "") -endif() if(SW64) set(LD80BITS OFF CACHE BOOL "") set(NOALIGN OFF CACHE BOOL "") - set(PAGE8K ON CACHE BOOL "") endif() if(ANDROID) set(NOLOADADDR ON CACHE BOOL "") @@ -103,9 +90,6 @@ option(NOALIGN "Set to ON if host device doesn't need re-align (i.e. i386)" ${NO option(ARM_DYNAREC "Set to ON to use ARM Dynamic Recompilation" ${ARM_DYNAREC}) option(RV64_DYNAREC "Set to ON to use RISC-V Dynamic Recompilation" ${RV64_DYNAREC}) option(LARCH64_DYNAREC "Set to ON to use LOONGARCH64 Dynamic Recompilation" ${LARCH64_DYNAREC}) -option(PAGE8K "Set to ON if host device have PageSize of 8K (instead of 4K)" ${PAGE8K}) -option(PAGE16K "Set to ON if host device have PageSize of 16K (instead of 4K)" ${PAGE16K}) -option(PAGE64K "Set to ON if host device have PageSize of 64K (instead of 4K)" ${PAGE64K}) option(STATICBUILD "Set to ON to have a static build (Warning, not working)" ${STATICBUILD}) option(NO_LIB_INSTALL "Set ON to not install a few x86_64 libs that are used by many program" ${NO_LIB_INSTALL}) option(NO_CONF_INSTALL "Set ON to not install config files" ${NO_CONF_INSTALL}) @@ -249,17 +233,6 @@ if(STATICBUILD) set(CMAKE_EXE_LINKER_FLAGS "-static") set(HAVE_TRACE OFF) endif() -if(PAGE8K) - add_definitions(-DPAGE8K) -endif() - -if(PAGE16K) - add_definitions(-DPAGE16K) -endif() - -if(PAGE64K) - add_definitions(-DPAGE64K) -endif() if(NOGIT) add_definitions(-DNOGIT) diff --git a/docs/COMPILE.md b/docs/COMPILE.md index b669dc1e..f19557fb 100644 --- a/docs/COMPILE.md +++ b/docs/COMPILE.md @@ -80,7 +80,6 @@ Warning, you need a 64bit OS: #### for Raspberry Pi 5 -If your Raspberry Pi OS use 16K pages use `RPI5ARM64PS16K` instead of `RPI5ARM64`: ``` -D RPI5ARM64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo ``` @@ -150,7 +149,7 @@ Using a 64bit OS: #### for M1 -Only test on Asahi for now, using the default "16K page" kernel +Only test on Asahi with Fedora, using the default "16K page" kernel ``` -D M1=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo