[PR #2745] [MERGED] build: Target same CPU architecture level as PS4. #2949

Closed
opened 2026-02-27 22:01:52 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2745
Author: @squidbus
Created: 4/4/2025
Status: Merged
Merged: 4/4/2025
Merged by: @georgemoralis

Base: mainHead: cpu-target


📝 Commits (1)

  • 0e20bc5 build: Target same CPU architecture level as PS4.

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 CMakeLists.txt (+2 -2)

📄 Description

Improves the build target CPU architecture by setting to btver2 (Bobcat Version 2 - the name used by compilers for AMD Jaguar), which matches the actual PS4 CPU. SSE4a is explicitly excluded to not inadvertently use AMD-only instructions.

This enables more instruction set extensions than approximating with sandybridge does, increasing support for potential optimizations while still preventing the CPU requirements from exceeding those of games themselves.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2745 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 4/4/2025 **Status:** ✅ Merged **Merged:** 4/4/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `cpu-target` --- ### 📝 Commits (1) - [`0e20bc5`](https://github.com/shadps4-emu/shadPS4/commit/0e20bc59c4756c23003eabbd39a0aa9ab8ed66e0) build: Target same CPU architecture level as PS4. ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+2 -2) </details> ### 📄 Description Improves the build target CPU architecture by setting to `btver2` (Bobcat Version 2 - the name used by compilers for AMD Jaguar), which matches the actual PS4 CPU. SSE4a is explicitly excluded to not inadvertently use AMD-only instructions. This enables more instruction set extensions than approximating with `sandybridge` does, increasing support for potential optimizations while still preventing the CPU requirements from exceeding those of games themselves. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:01:52 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2949
No description provided.