[PR #3716] [MERGED] Kernel.Vmm: Fix mmap alignment behavior #3677

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

📋 Pull Request Information

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

Base: mainHead: mmap-fix


📝 Commits (1)

📊 Changes

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

View changed files

📝 src/core/libraries/kernel/memory.cpp (+9 -3)

📄 Description

Based on hardware testing, mmap doesn't allow misaligned addresses with the fixed flag specified. When fixed is not specified, address effectively rounds up.


🔄 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/3716 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 10/7/2025 **Status:** ✅ Merged **Merged:** 10/7/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `mmap-fix` --- ### 📝 Commits (1) - [`21a8c77`](https://github.com/shadps4-emu/shadPS4/commit/21a8c776397528a4cdbc2b4816e5aed3133c4b44) Fix alignment for mmap ### 📊 Changes **1 file changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/memory.cpp` (+9 -3) </details> ### 📄 Description Based on hardware testing, mmap doesn't allow misaligned addresses with the fixed flag specified. When fixed is not specified, address effectively rounds up. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:04:35 +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#3677
No description provided.