mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-27 08:46:03 +03:00
[PR #2905] [CLOSED] core: Implement Linux TCB access using guest<->host swapping. #3067
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#3067
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/2905
Author: @squidbus
Created: 5/11/2025
Status: ❌ Closed
Base:
main← Head:tcb-swap📝 Commits (2)
fe3051fcore: Implement Linux TCB access using guest<->host swapping.cac372eMerge branch 'main' into tcb-swap📊 Changes
5 files changed (+46 additions, -38 deletions)
View changed files
📝
src/core/cpu_patches.cpp(+5 -28)📝
src/core/cpu_patches.h(+0 -3)📝
src/core/module.cpp(+0 -5)📝
src/core/tls.cpp(+17 -0)📝
src/core/tls.h(+24 -2)📄 Description
Reviving an old experiment I had to implement TCB access without code patches on Linux. Essentially, whenever a call to guest code happens, we swap GS and FS so the guest TCB is in FS, and when a call to host code happens we do the reverse.
I've done some basic testing with asserts to check that the TCB should be in the correct state when swaps happen during execution of a few games. Needs actual testing from Linux users though to make sure it's working correctly.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.