mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #3464] [MERGED] Replace direct usage of wrgsbase and rdgsbase with a more portable solution #3490
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#3490
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/3464
Author: @kalaposfos13
Created: 8/27/2025
Status: ✅ Merged
Merged: 8/27/2025
Merged by: @squidbus
Base:
main← Head:wrgsbase-rdgsbase📝 Commits (2)
764ec5bReplace direct usage of wrgsbase and rdgsbase with a more portable solution8f9eb46The loathsome clang-formatter📊 Changes
1 file changed (+10 additions, -4 deletions)
View changed files
📝
src/core/tls.cpp(+10 -4)📄 Description
From what I found online (https://www.kernel.org/doc/html/next/x86/x86_64/fsgs.html), using these syscalls are the intended way to access these instructions on Linux. However, the syscall also supports setups where this instruction is missing or is unsupported by the kernel, namely, PS4 Linux in my case (and with this, the only modification required for the emulator to run there is recompiling with an older march that's supported by the console). From testing by me and bread, this also doesn't come with any noticeable performance drop either.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.