summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar Subv2015-05-10 18:35:37 -0500
committerGravatar Subv2015-05-10 18:35:37 -0500
commit000876858d52d7e4fa8e21bc4407d43d548eff30 (patch)
treef0af4cde78349cfe4ea7875b24d37cf85eb3eb03 /src/core/core.cpp
parentMerge pull request #726 from bunnei/gpu-improvements (diff)
downloadyuzu-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.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index bb2ed7a92..b5c258230 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -61,10 +61,6 @@ int Init() {
61 g_sys_core = new ARM_DynCom(USER32MODE); 61 g_sys_core = new ARM_DynCom(USER32MODE);
62 g_app_core = new ARM_DynCom(USER32MODE); 62 g_app_core = new ARM_DynCom(USER32MODE);
63 63
64 // TODO: Whenever TLS is implemented, this should contain
65 // the address of the 0x200-byte TLS
66 g_app_core->SetCP15Register(CP15_THREAD_URO, Memory::TLS_AREA_VADDR);
67
68 LOG_DEBUG(Core, "Initialized OK"); 64 LOG_DEBUG(Core, "Initialized OK");
69 return 0; 65 return 0;
70} 66}