[PR #1896] [MERGED] core: better memory configuration #2373

Closed
opened 2026-02-27 21:16:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1896
Author: @polybiusproxy
Created: 12/26/2024
Status: Merged
Merged: 12/28/2024
Merged by: @polybiusproxy

Base: mainHead: core/kernel-memory


📝 Commits (5)

  • b443bec core: better memory configuration
  • 6f8b6f5 Check for valid pointers to extended memory
  • 615e8e1 add temporary logging
  • 85982dd Use process param for querying SDK ver
  • f356a2d Remove logging

📊 Changes

7 files changed (+55 additions, -32 deletions)

View changed files

📝 src/core/address_space.cpp (+1 -1)
📝 src/core/libraries/kernel/memory.h (+5 -7)
📝 src/core/libraries/np_trophy/np_trophy.cpp (+4 -3)
📝 src/core/linker.cpp (+31 -10)
📝 src/core/linker.h (+2 -1)
📝 src/core/memory.cpp (+11 -9)
📝 src/core/memory.h (+1 -1)

📄 Description

This PR aims to resolve the issues from https://github.com/shadps4-emu/shadPS4/issues/825 based on @red-prig's work on kernel reverse engineering.
May also fix games that check for direct memory sizes, like The Last of Us Part II and Farming Simulator 22.

Marking as draft as this needs to be checked for regressions.


🔄 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/1896 **Author:** [@polybiusproxy](https://github.com/polybiusproxy) **Created:** 12/26/2024 **Status:** ✅ Merged **Merged:** 12/28/2024 **Merged by:** [@polybiusproxy](https://github.com/polybiusproxy) **Base:** `main` ← **Head:** `core/kernel-memory` --- ### 📝 Commits (5) - [`b443bec`](https://github.com/shadps4-emu/shadPS4/commit/b443bec7d9361acd441f96df861d0903a213eee3) core: better memory configuration - [`6f8b6f5`](https://github.com/shadps4-emu/shadPS4/commit/6f8b6f50db4074e62753985a4a3d1b1a621958fe) Check for valid pointers to extended memory - [`615e8e1`](https://github.com/shadps4-emu/shadPS4/commit/615e8e18f62a75082dd38fe8235d4da2e9f13656) add temporary logging - [`85982dd`](https://github.com/shadps4-emu/shadPS4/commit/85982dd7ae8f78ce936c1c1029c27cb5da639a18) Use process param for querying SDK ver - [`f356a2d`](https://github.com/shadps4-emu/shadPS4/commit/f356a2dcfa3fbd1691f5ac07e09d083a937c435a) Remove logging ### 📊 Changes **7 files changed** (+55 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `src/core/address_space.cpp` (+1 -1) 📝 `src/core/libraries/kernel/memory.h` (+5 -7) 📝 `src/core/libraries/np_trophy/np_trophy.cpp` (+4 -3) 📝 `src/core/linker.cpp` (+31 -10) 📝 `src/core/linker.h` (+2 -1) 📝 `src/core/memory.cpp` (+11 -9) 📝 `src/core/memory.h` (+1 -1) </details> ### 📄 Description This PR aims to resolve the issues from https://github.com/shadps4-emu/shadPS4/issues/825 based on @red-prig's work on kernel reverse engineering. May also fix games that check for direct memory sizes, like The Last of Us Part II and Farming Simulator 22. Marking as draft as this needs to be checked for regressions. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:16:15 +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#2373
No description provided.