[PR #2823] [MERGED] Implement SET_PC_B64 instruction #3010

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2823
Author: @Fire-Cube
Created: 4/21/2025
Status: Merged
Merged: 4/21/2025
Merged by: @squidbus

Base: mainHead: set_pc


📝 Commits (6)

📊 Changes

3 files changed (+62 additions, -4 deletions)

View changed files

📝 src/shader_recompiler/frontend/control_flow_graph.cpp (+60 -3)
📝 src/shader_recompiler/frontend/instruction.cpp (+1 -1)
📝 src/shader_recompiler/frontend/translate/scalar_flow.cpp (+1 -0)

📄 Description

Implement this instruction by resolving the target addresses of the setpcs and replacing them with branches.
Fixes unreachable in CUSA02694
image


🔄 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/2823 **Author:** [@Fire-Cube](https://github.com/Fire-Cube) **Created:** 4/21/2025 **Status:** ✅ Merged **Merged:** 4/21/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `set_pc` --- ### 📝 Commits (6) - [`005cec9`](https://github.com/shadps4-emu/shadPS4/commit/005cec9f463c34c615c2f041b860cbaef52df34e) basic impl - [`b005ddd`](https://github.com/shadps4-emu/shadPS4/commit/b005ddd426b5d80351898a2cdccab15913974f85) Merge branch 'shadps4-emu:main' into set_pc - [`3dbb658`](https://github.com/shadps4-emu/shadPS4/commit/3dbb658a2e49b968037070ea1521a80e44fd6e52) minor improvements - [`8104718`](https://github.com/shadps4-emu/shadPS4/commit/8104718f5b63cf8a03d198f7b8f1693c6023ff7e) clang - [`5d112cf`](https://github.com/shadps4-emu/shadPS4/commit/5d112cf68f685613dfd083629a417596c02d3346) more clang - [`2f059fa`](https://github.com/shadps4-emu/shadPS4/commit/2f059fab001bd0ce382fa16d3cd57658122d47ed) improvements requested by squidbus ### 📊 Changes **3 files changed** (+62 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/frontend/control_flow_graph.cpp` (+60 -3) 📝 `src/shader_recompiler/frontend/instruction.cpp` (+1 -1) 📝 `src/shader_recompiler/frontend/translate/scalar_flow.cpp` (+1 -0) </details> ### 📄 Description Implement this instruction by resolving the target addresses of the setpcs and replacing them with branches. Fixes unreachable in CUSA02694 ![image](https://github.com/user-attachments/assets/3cf11969-3416-474d-8130-04f5aff8b7c2) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:02:06 +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#3010
No description provided.