diff options
author | Lioncash <mathew1800@gmail.com> | 2015-04-06 13:01:19 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-04-06 13:01:19 -0400 |
commit | 8004d35ea163b621ea3f3d4333f2c58ec926d7c9 (patch) | |
tree | 5e81e78b4789fe9d6c1c6c54836d1e338ec7714a /src/core/core.cpp | |
parent | c3ffe8f9c3410521eba90e5bb3b2d6a683506731 (diff) |
core: Migrate 3DS-specific CP15 register setting into Init
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 15787bc1..81e64231 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -7,6 +7,7 @@ #include "core/core.h" #include "core/core_timing.h" +#include "core/mem_map.h" #include "core/settings.h" #include "core/arm/arm_interface.h" #include "core/arm/disassembler/arm_disasm.h" @@ -59,6 +60,10 @@ int Init() { g_sys_core = new ARM_DynCom(USER32MODE); g_app_core = new ARM_DynCom(USER32MODE); + // TODO: Whenever TLS is implemented, this should contain + // the address of the 0x200-byte TLS + g_app_core->SetCP15Register(CP15_THREAD_URO, Memory::KERNEL_MEMORY_VADDR); + LOG_DEBUG(Core, "Initialized OK"); return 0; } |