[PR #2757] [MERGED] Revert "build: Target same CPU architecture level as PS4. (#2745)" #2957

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

📋 Pull Request Information

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

Base: mainHead: cpu-arch-2


📝 Commits (2)

  • ba04890 Revert "build: Target same CPU architecture level as PS4. (#2745)"
  • 13b5e8f build: Update architecture comments and set mtune=generic.

📊 Changes

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

View changed files

📝 CMakeLists.txt (+3 -2)

📄 Description

  • Reverts change of build architecture back to sandybridge from btver2, as something that the new architecture included is causing issues with Rosetta 2 on M1 CPUs.
  • Add -mtune=generic to make sure build is optimized for generic CPU instead of Sandy Bridge specifically. -march will limit the instruction sets to use and -mtune will determine how to micro-optimize.

Should fix https://github.com/shadps4-emu/shadPS4/issues/2750 (no idea if the game will actually work but it should fix the provided crash, beyond that much I think it should be a compatibility report)


🔄 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/2757 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 4/7/2025 **Status:** ✅ Merged **Merged:** 4/7/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `cpu-arch-2` --- ### 📝 Commits (2) - [`ba04890`](https://github.com/shadps4-emu/shadPS4/commit/ba048905681d600c6f91d13d147dbafa5b13bc97) Revert "build: Target same CPU architecture level as PS4. (#2745)" - [`13b5e8f`](https://github.com/shadps4-emu/shadPS4/commit/13b5e8f794f8fa51658a8ef4966e1c0e0873cfbd) build: Update architecture comments and set mtune=generic. ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+3 -2) </details> ### 📄 Description * Reverts change of build architecture back to `sandybridge` from `btver2`, as something that the new architecture included is causing issues with Rosetta 2 on M1 CPUs. * Add `-mtune=generic` to make sure build is optimized for generic CPU instead of Sandy Bridge specifically. `-march` will limit the instruction sets to use and `-mtune` will determine how to micro-optimize. Should fix https://github.com/shadps4-emu/shadPS4/issues/2750 (no idea if the game will actually work but it should fix the provided crash, beyond that much I think it should be a compatibility report) --- <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:54 +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#2957
No description provided.