core: Migrate 3DS-specific CP15 register setting into Init

This commit is contained in:
Lioncash 2015-04-06 13:01:19 -04:00
parent c3ffe8f9c3
commit 8004d35ea1
2 changed files with 5 additions and 8 deletions

View file

@ -139,16 +139,8 @@ void ARMul_Reset(ARMul_State* state)
state->Bank = SVCBANK;
FLUSHPIPE;
// Reset CP15
ResetMPCoreCP15Registers(state);
// This is separate from the CP15 register reset function, as
// this isn't an ARM-defined reset value; it's set by the 3DS.
//
// TODO: Whenever TLS is implemented, this should contain
// the address of the 0x200-byte TLS
state->CP15[CP15_THREAD_URO] = Memory::KERNEL_MEMORY_VADDR;
state->EndCondition = 0;
state->ErrorCode = 0;