X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightning%2Finclude%2Flightning%2Fjit_mips.h;h=52aebccb52570aeb06d2450bcc858a58cff66892;hb=02a5662c31c401081716623cc80bb1c4ab1dbb19;hp=eb7d783286cf2dc50030584ad714d9374895c233;hpb=28d1bea2e828cd079593abc8c97ea6ff4fd7d4f4;p=pcsx_rearmed.git diff --git a/deps/lightning/include/lightning/jit_mips.h b/deps/lightning/include/lightning/jit_mips.h index eb7d7832..52aebccb 100644 --- a/deps/lightning/include/lightning/jit_mips.h +++ b/deps/lightning/include/lightning/jit_mips.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2019 Free Software Foundation, Inc. + * Copyright (C) 2012-2023 Free Software Foundation, Inc. * * This file is part of GNU lightning. * @@ -25,6 +25,8 @@ #if _MIPS_SIM != _ABIO32 # define NEW_ABI 1 +#else +# define NEW_ABI 0 #endif /* @@ -34,9 +36,9 @@ typedef enum { #define jit_r(i) (_V0 + (i)) #if NEW_ABI -# define jit_r_num() 7 +# define jit_r_num() 8 #else -# define jit_r_num() 11 +# define jit_r_num() 12 #endif #define jit_v(i) (_S0 + (i)) #define jit_v_num() 8 @@ -55,6 +57,7 @@ typedef enum { # define JIT_R4 _T6 # define JIT_R5 _T7 # define JIT_R6 _T8 +# define JIT_R7 _T9 #else # define JIT_R2 _T0 # define JIT_R3 _T1 @@ -65,6 +68,7 @@ typedef enum { # define JIT_R8 _T6 # define JIT_R9 _T7 # define JIT_R10 _T8 +# define JIT_R11 _T9 #endif _V0, _V1, #if !NEW_ABI @@ -112,4 +116,13 @@ typedef enum { _NOREG, } jit_reg_t; +typedef struct { + jit_uint32_t release : 4; +} jit_cpu_t; + +/* + * Initialization + */ +extern jit_cpu_t jit_cpu; + #endif /* _jit_mips_h */