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/core.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/core.h')
| -rw-r--r-- | src/core/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 278f0f1cc..215b5a49f 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -21,6 +21,8 @@ struct ThreadContext { | |||
| 21 | u32 fpu_registers[32]; | 21 | u32 fpu_registers[32]; |
| 22 | u32 fpscr; | 22 | u32 fpscr; |
| 23 | u32 fpexc; | 23 | u32 fpexc; |
| 24 | |||
| 25 | u32 tls; | ||
| 24 | }; | 26 | }; |
| 25 | 27 | ||
| 26 | extern ARM_Interface* g_app_core; ///< ARM11 application core | 28 | extern ARM_Interface* g_app_core; ///< ARM11 application core |