[PR #2904] [MERGED] sceKernelVirtualQuery Fixes VI #3069

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2904
Author: @StevenMiller123
Created: 5/11/2025
Status: Merged
Merged: 5/11/2025
Merged by: @squidbus

Base: mainHead: fix-virtual-query-struct


📝 Commits (2)

  • 10879ca Reduce bitfield size
  • 69a99bf Static assert for VirtualQueryInfo struct size

📊 Changes

1 file changed (+7 additions, -5 deletions)

View changed files

📝 src/core/libraries/kernel/memory.h (+7 -5)

📄 Description

Fixes the struct size for sceKernelVirtualQuery. Linux compilers were optimizing the size down to hardware-accurate levels, Windows compilers weren't.

And yes, I counted. This is the sixth PR I've made with fixes for this function. Hopefully it's the last.


🔄 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/2904 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 5/11/2025 **Status:** ✅ Merged **Merged:** 5/11/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `fix-virtual-query-struct` --- ### 📝 Commits (2) - [`10879ca`](https://github.com/shadps4-emu/shadPS4/commit/10879cad78e2847cb4d329380f60a8cff59861d1) Reduce bitfield size - [`69a99bf`](https://github.com/shadps4-emu/shadPS4/commit/69a99bfc285b08c56532b082157ff1d234cee3e1) Static assert for VirtualQueryInfo struct size ### 📊 Changes **1 file changed** (+7 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/memory.h` (+7 -5) </details> ### 📄 Description Fixes the struct size for `sceKernelVirtualQuery`. Linux compilers were optimizing the size down to hardware-accurate levels, Windows compilers weren't. And yes, I counted. This is the sixth PR I've made with fixes for this function. Hopefully it's the last. --- <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:19 +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#3069
No description provided.