3dS: Attempt to use Core 2 for threads

This commit is contained in:
Jeffrey Pfau 2016-08-05 22:45:45 -07:00
parent d008291fc8
commit 3e9a1a399e
2 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,7 @@ Misc:
- All: Faster memory read/write
- Qt: Make audio channel/video layer options shortcut mappable
- GBA Memory: Optimize stalling behavior
- 3DS: Attempt to use Core 2 for threads
0.4.1: (2016-07-11)
Bugfixes:

View File

@ -107,6 +107,11 @@ static inline int ThreadCreate(Thread* thread, ThreadEntry entry, void* context)
if (!thread->stack) {
return 1;
}
bool isNew3DS;
APT_CheckNew3DS(&isNew3DS);
if (isNew3DS && svcCreateThread(&thread->handle, entry, (u32) context, (u32*) &thread->stack[0x8000], 0x18, 2) == 0) {
return 0;
}
return svcCreateThread(&thread->handle, entry, (u32) context, (u32*) &thread->stack[0x8000], 0x18, -1);
}