X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Flightrec-private.h;h=fe89e66b21dbf2a08570236f6556170d9c1bbb2e;hb=61124a6d0fb6a2980f9025630382d9b76c07066f;hp=87565a636d296868498f598cda734957414a008d;hpb=437b1e617808119c3a24a72c77cd2fa86a5d3220;p=pcsx_rearmed.git diff --git a/deps/lightrec/lightrec-private.h b/deps/lightrec/lightrec-private.h index 87565a63..fe89e66b 100644 --- a/deps/lightrec/lightrec-private.h +++ b/deps/lightrec/lightrec-private.h @@ -43,6 +43,8 @@ #define SET_DEFAULT_ELM(table, value) [0] = NULL #endif +#define fallthrough do {} while (0) /* fall-through */ + /* Flags for (struct block *)->flags */ #define BLOCK_NEVER_COMPILE BIT(0) #define BLOCK_SHOULD_RECOMPILE BIT(1) @@ -67,7 +69,6 @@ struct blockcache; struct recompiler; struct regcache; struct opcode; -struct tinymm; struct reaper; struct block { @@ -78,6 +79,7 @@ struct block { struct block *next; u32 pc; u32 hash; + u32 precompile_date; unsigned int code_size; u16 nb_ops; u8 flags; @@ -131,7 +133,6 @@ struct lightrec_state { struct block *dispatcher, *c_wrapper_block; void *c_wrappers[C_WRAPPERS_COUNT]; void *wrappers_eps[C_WRAPPERS_COUNT]; - struct tinymm *tinymm; struct blockcache *block_cache; struct recompiler *rec; struct lightrec_cstate *cstate; @@ -207,7 +208,7 @@ static inline void ** lut_address(struct lightrec_state *state, u32 offset) static inline void * lut_read(struct lightrec_state *state, u32 offset) { - void **lut_entry = lut_address(state, lut_offset(offset)); + void **lut_entry = lut_address(state, offset); if (lut_is_32bit(state)) return (void *)(uintptr_t) *(u32 *) lut_entry;