Add Nintendo Switch port.
Contributed by Swyter and vdweller84.
This commit is contained in:
@@ -89,7 +89,7 @@ typedef uint16_t HotCount;
|
||||
typedef struct GG_State {
|
||||
lua_State L; /* Main thread. */
|
||||
global_State g; /* Global state. */
|
||||
#if LJ_TARGET_ARM
|
||||
#if LJ_TARGET_ARM && !LJ_TARGET_NX
|
||||
/* Make g reachable via K12 encoded DISPATCH-relative addressing. */
|
||||
uint8_t align1[(16-sizeof(global_State))&15];
|
||||
#endif
|
||||
@@ -99,7 +99,7 @@ typedef struct GG_State {
|
||||
#if LJ_HASJIT
|
||||
jit_State J; /* JIT state. */
|
||||
HotCount hotcount[HOTCOUNT_SIZE]; /* Hot counters. */
|
||||
#if LJ_TARGET_ARM
|
||||
#if LJ_TARGET_ARM && !LJ_TARGET_NX
|
||||
/* Ditto for J. */
|
||||
uint8_t align2[(16-sizeof(jit_State)-sizeof(HotCount)*HOTCOUNT_SIZE)&15];
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user