all repos — mgba @ 3e9a1a399e00d15f2b7f9bf8dc9260319fb655c7

mGBA Game Boy Advance Emulator

3dS: Attempt to use Core 2 for threads
Jeffrey Pfau jeffrey@endrift.com
Fri, 05 Aug 2016 22:45:45 -0700
commit

3e9a1a399e00d15f2b7f9bf8dc9260319fb655c7

parent

d008291fc8173d50be6dcb81cd19141a4dc2a4d4

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -37,6 +37,7 @@ - PSP2: Use system font for menus

- 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:
M src/platform/3ds/threading.hsrc/platform/3ds/threading.h

@@ -107,6 +107,11 @@ thread->stack = memalign(8, 0x8000);

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); }