diff options
| author | 2015-04-06 15:06:07 -0400 | |
|---|---|---|
| committer | 2015-04-06 15:06:07 -0400 | |
| commit | 14dcd986535c681601d6f255899157aff021a5d2 (patch) | |
| tree | fb35f0b8444122438dcdf41b4a3b0bf32e4d7d29 /src/core/core.cpp | |
| parent | Merge pull request #684 from lioncash/uninit (diff) | |
| parent | core: Migrate 3DS-specific CP15 register setting into Init (diff) | |
| download | yuzu-14dcd986535c681601d6f255899157aff021a5d2.tar.gz yuzu-14dcd986535c681601d6f255899157aff021a5d2.tar.xz yuzu-14dcd986535c681601d6f255899157aff021a5d2.zip | |
Merge pull request #685 from lioncash/cpregs
dyncom: Set the MPCore CP15 register reset values on initialization.
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 15787bc17..81e642318 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include "core/core.h" | 7 | #include "core/core.h" |
| 8 | #include "core/core_timing.h" | 8 | #include "core/core_timing.h" |
| 9 | 9 | ||
| 10 | #include "core/mem_map.h" | ||
| 10 | #include "core/settings.h" | 11 | #include "core/settings.h" |
| 11 | #include "core/arm/arm_interface.h" | 12 | #include "core/arm/arm_interface.h" |
| 12 | #include "core/arm/disassembler/arm_disasm.h" | 13 | #include "core/arm/disassembler/arm_disasm.h" |
| @@ -59,6 +60,10 @@ int Init() { | |||
| 59 | g_sys_core = new ARM_DynCom(USER32MODE); | 60 | g_sys_core = new ARM_DynCom(USER32MODE); |
| 60 | g_app_core = new ARM_DynCom(USER32MODE); | 61 | g_app_core = new ARM_DynCom(USER32MODE); |
| 61 | 62 | ||
| 63 | // TODO: Whenever TLS is implemented, this should contain | ||
| 64 | // the address of the 0x200-byte TLS | ||
| 65 | g_app_core->SetCP15Register(CP15_THREAD_URO, Memory::KERNEL_MEMORY_VADDR); | ||
| 66 | |||
| 62 | LOG_DEBUG(Core, "Initialized OK"); | 67 | LOG_DEBUG(Core, "Initialized OK"); |
| 63 | return 0; | 68 | return 0; |
| 64 | } | 69 | } |