mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #1624] [MERGED] libraries: Add libSceRazorCpu HLE skeleton. #2206
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#2206
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/1624
Author: @squidbus
Created: 11/30/2024
Status: ✅ Merged
Merged: 11/30/2024
Merged by: @georgemoralis
Base:
main← Head:razor-cpu-hle📝 Commits (3)
2d7766bRemove save migration code (#1621)666b060Kernel Fixes (#1605)1a49c9dlibraries: Add libSceRazorCpu HLE skeleton.📊 Changes
13 files changed (+334 additions, -29 deletions)
View changed files
📝
CMakeLists.txt(+2 -0)📝
src/common/config.cpp(+37 -18)📝
src/common/logging/filter.cpp(+1 -0)📝
src/common/logging/types.h(+1 -0)📝
src/core/libraries/kernel/file_system.cpp(+1 -1)📝
src/core/libraries/kernel/memory.cpp(+15 -0)📝
src/core/libraries/kernel/threads/pthread.cpp(+6 -6)📝
src/core/libraries/kernel/threads/pthread_attr.cpp(+2 -0)📝
src/core/libraries/kernel/threads/pthread_spec.cpp(+1 -0)📝
src/core/libraries/libs.cpp(+2 -0)➕
src/core/libraries/razor_cpu/razor_cpu.cpp(+249 -0)➕
src/core/libraries/razor_cpu/razor_cpu.h(+17 -0)📝
src/core/libraries/system/sysmodule.cpp(+0 -4)📄 Description
Did a bit more looking into
libSceRazorCpuand apparently the default behavior when the system hasn't initialized it withsceRazorCpuInitializeInternalis to just stub out every single function to returnORBIS_OKimmediately.Thus instead of pretending it isn't loaded, we can just add HLE stubs that debug log (to avoid spam) and return OK same as this default behavior, and everything works fine. This should help eliminate the log spam on some versions of PSPHD as well since it apparently does not check if the module is loaded. In the future we can also hook into these debug calls ourselves to add to our own debugging information.
Validated on Gravity Rush Remastered and Persona 5 Royal same as before.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.