diff options
| author | 2015-05-10 18:35:37 -0500 | |
|---|---|---|
| committer | 2015-05-10 18:35:37 -0500 | |
| commit | 000876858d52d7e4fa8e21bc4407d43d548eff30 (patch) | |
| tree | f0af4cde78349cfe4ea7875b24d37cf85eb3eb03 /src/core/hle/kernel/thread.h | |
| parent | Merge pull request #726 from bunnei/gpu-improvements (diff) | |
| download | yuzu-000876858d52d7e4fa8e21bc4407d43d548eff30.tar.gz yuzu-000876858d52d7e4fa8e21bc4407d43d548eff30.tar.xz yuzu-000876858d52d7e4fa8e21bc4407d43d548eff30.zip | |
Core/Memory: Give every emulated thread it's own TLS area.
The TLS area for thread T with id Ti is located at TLS_AREA_VADDR + (Ti - 1) * 0x200.
This allows some games like Mario Kart 7 to continue further.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 9958b16e6..17bb69f45 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -135,6 +135,12 @@ public: | |||
| 135 | */ | 135 | */ |
| 136 | void Stop(); | 136 | void Stop(); |
| 137 | 137 | ||
| 138 | /* | ||
| 139 | * Returns the Thread Local Storage address of the current thread | ||
| 140 | * @returns VAddr of the thread's TLS | ||
| 141 | */ | ||
| 142 | VAddr GetTLSAddress() const; | ||
| 143 | |||
| 138 | Core::ThreadContext context; | 144 | Core::ThreadContext context; |
| 139 | 145 | ||
| 140 | u32 thread_id; | 146 | u32 thread_id; |