From 000876858d52d7e4fa8e21bc4407d43d548eff30 Mon Sep 17 00:00:00 2001 From: Subv Date: Sun, 10 May 2015 18:35:37 -0500 Subject: Core/Memory: Give every emulated thread it's own TLS area. The TLS area for thread T with id Ti is located at TLS_AREA_VADDR + (Ti - 1) * 0x200. This allows some games like Mario Kart 7 to continue further. --- src/core/core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/core.h') diff --git a/src/core/core.h b/src/core/core.h index 278f0f1cc..215b5a49f 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -21,6 +21,8 @@ struct ThreadContext { u32 fpu_registers[32]; u32 fpscr; u32 fpexc; + + u32 tls; }; extern ARM_Interface* g_app_core; ///< ARM11 application core -- cgit v1.2.3