Migrate TLS patches to new patching system.

This commit is contained in:
squidbus 2024-07-13 21:38:20 -07:00 committed by TheTurtle
parent 6a6d5bad42
commit d9231b239c
7 changed files with 420 additions and 457 deletions

View file

@ -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