mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-24 23:36:00 +03:00
[PR #2879] [MERGED] Core: Fix module load addresses #3050
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3050
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2879
Author: @StevenMiller123
Created: 5/4/2025
Status: ✅ Merged
Merged: 5/5/2025
Merged by: @squidbus
Base:
main← Head:fix-module-mappings📝 Commits (6)
f15ffe8Fix module map addressesf575831Hardcode hardware accurate base addressd66c8d6Clangecffd80Swap module mapping to NoFlags, remove offset codef15c385Fix module mapping namesaf70f0fFix patches📊 Changes
2 files changed (+5 additions, -10 deletions)
View changed files
📝
src/core/address_space.h(+0 -2)📝
src/core/module.cpp(+5 -8)📄 Description
On a PS4, all modules are mapped starting at address
0x800000000, and with no gaps in-between. Since all platforms are able to map to these addresses, we can hard code this address as a constant and use that as the "base" address we map to.The information this PR is based on comes from observations visible in this klog:
Memory Map Query klog.txt
These changes fix
[Debug] <Critical> memory.cpp:331 operator(): Assertion Failed!when booting some Call of Duty games.Specifically from my testing, this fixes updated versions of Call of Duty®: Advanced Warfare (CUSA00803) crashing on startup (note that these titles still need to be loaded from
default.elfto bypasssceSystemServiceLoadExec)CoD AW main log.txt
CoD AW PR log.txt
This doesn't appear to regress any games on my end, wouldn't hurt to have testers though.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.