From 4f226a6fc013b01d6fea3d17bcfdabf4a443aa6f Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 2 Feb 2026 11:43:45 +0000 Subject: [PATCH] use btver2 --- .ci/ps4/build.sh | 6 ++++-- src/common/host_memory.cpp | 4 +--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ci/ps4/build.sh b/.ci/ps4/build.sh index 60e8359efd..cec9876dcd 100755 --- a/.ci/ps4/build.sh +++ b/.ci/ps4/build.sh @@ -10,8 +10,8 @@ set(CMAKE_SYSROOT "$OO_PS4_TOOLCHAIN") set(CMAKE_STAGING_PREFIX "$OO_PS4_TOOLCHAIN") set(CMAKE_SYSTEM_NAME "OpenOrbis") -set(CMAKE_C_FLAGS " -D__OPENORBIS__ -D_LIBCPP_HAS_MUSL_LIBC=1 -D_GNU_SOURCE=1 --target=x86_64-pc-freebsd12-elf -mtune=x86-64 -march=x86-64 -fPIC -funwind-tables") -set(CMAKE_CXX_FLAGS " -D__OPENORBIS__ -D_LIBCPP_HAS_MUSL_LIBC=1 -D_GNU_SOURCE=1 --target=x86_64-pc-freebsd12-elf -mtune=x86-64 -march=x86-64 -fPIC -funwind-tables") +set(CMAKE_C_FLAGS " -D__OPENORBIS__ -D_LIBCPP_HAS_MUSL_LIBC=1 -D_GNU_SOURCE=1 --target=x86_64-pc-freebsd12-elf -mtune=btver2 -march=btver2 -fPIC -funwind-tables") +set(CMAKE_CXX_FLAGS " -D__OPENORBIS__ -D_LIBCPP_HAS_MUSL_LIBC=1 -D_GNU_SOURCE=1 --target=x86_64-pc-freebsd12-elf -mtune=btver2 -march=btver2 -fPIC -funwind-tables") set(CMAKE_EXE_LINKER_FLAGS "-m elf_x86_64 -pie -T $OO_PS4_TOOLCHAIN/link.x --eh-frame-hdr -L$OO_PS4_TOOLCHAIN/lib") set(CMAKE_C_LINK_FLAGS "-m elf_x86_64 -pie -T $OO_PS4_TOOLCHAIN/link.x --eh-frame-hdr -L$OO_PS4_TOOLCHAIN/lib") @@ -59,3 +59,5 @@ cmake -S . -B build -G "Unix Makefiles" \ -DYUZU_USE_EXTERNAL_SDL2=ON \ "${EXTRA_CMAKE_FLAGS[@]}" || exit cmake --build build -t yuzu-cmd_pkg -- -j$NPROC +#cmake --build build -t dynarmic_tests_pkg -- -j$NPROC +#cmake --build build -t testps4_pkg -- -j$NPROC diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 9448db0d90..5221830673 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp @@ -504,9 +504,7 @@ class HostMemory::Impl { public: explicit Impl(size_t backing_size_, size_t virtual_size_) : backing_size{backing_size_}, virtual_size{virtual_size_} { -#ifdef __OPENORBIS__ - -#else +#if !defined(__OPENORBIS__) && !defined(__APPLE__) long page_size = sysconf(_SC_PAGESIZE); ASSERT_MSG(page_size == 0x1000, "page size {:#x} is incompatible with 4K paging", page_size); #endif