mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-09-26 11:18:32 +00:00
build: Target x86-64-v3 CPU architecture (#2934)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
This commit is contained in:
parent
6d38100a41
commit
98faff425e
2 changed files with 6 additions and 6 deletions
|
@ -54,9 +54,9 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ARCHITECTURE STREQUAL "x86_64")
|
if (ARCHITECTURE STREQUAL "x86_64")
|
||||||
# Target the same CPU architecture as the PS4, to maintain the same level of compatibility.
|
# Target x86-64-v3 CPU architecture as this is a good balance between supporting performance critical
|
||||||
# Exclude SSE4a as it is only available on AMD CPUs.
|
# instructions like AVX2 and maintaining support for older CPUs.
|
||||||
add_compile_options(-march=btver2 -mtune=generic -mno-sse4a)
|
add_compile_options(-march=x86-64-v3)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (APPLE AND ARCHITECTURE STREQUAL "x86_64" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
|
if (APPLE AND ARCHITECTURE STREQUAL "x86_64" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
|
||||||
|
|
|
@ -21,9 +21,9 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
- A processor with at least 4 cores and 6 threads
|
- A processor with at least 4 cores and 6 threads
|
||||||
- Above 2.5 GHz frequency
|
- Above 2.5 GHz frequency
|
||||||
- A CPU supporting the following instruction sets: MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, F16C, CLMUL, AES, BMI1, MOVBE, XSAVE, ABM
|
- A CPU supporting the x86-64-v3 baseline.
|
||||||
- **Intel**: Haswell generation or newer
|
- **Intel**: Haswell generation or newer
|
||||||
- **AMD**: Jaguar generation or newer
|
- **AMD**: Excavator generation or newer
|
||||||
- **Apple**: Rosetta 2 on macOS 15.4 or newer
|
- **Apple**: Rosetta 2 on macOS 15.4 or newer
|
||||||
|
|
||||||
### GPU
|
### GPU
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue