mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-05 10:13:15 +00:00
Migrate TLS patches to new patching system.
This commit is contained in:
parent
6a6d5bad42
commit
d9231b239c
7 changed files with 420 additions and 457 deletions
|
@ -22,13 +22,13 @@ struct Tcb {
|
|||
void* tcb_thread;
|
||||
};
|
||||
|
||||
/// Gets the thread local storage key for the TCB block.
|
||||
u32 GetTcbKey();
|
||||
|
||||
/// Sets the data pointer to the TCB block.
|
||||
void SetTcbBase(void* image_address);
|
||||
|
||||
/// Retrieves Tcb structure for the calling thread.
|
||||
Tcb* GetTcbBase();
|
||||
|
||||
/// Patches any instructions that access guest TLS to use provided storage.
|
||||
void PatchTLS(u64 segment_addr, u64 segment_size, Xbyak::CodeGenerator& c);
|
||||
|
||||
} // namespace Core
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue