X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Flightrec-private.h;h=1f8e10b510e5bb0597d54e8e2b254acfb3597aa5;hb=051a3d7c405e076032a804fc8b93448052eaf829;hp=12e953a2d9bbe6e7e930c177a46e9a212431ebf0;hpb=02a5662c31c401081716623cc80bb1c4ab1dbb19;p=pcsx_rearmed.git diff --git a/deps/lightrec/lightrec-private.h b/deps/lightrec/lightrec-private.h index 12e953a2..1f8e10b5 100644 --- a/deps/lightrec/lightrec-private.h +++ b/deps/lightrec/lightrec-private.h @@ -156,6 +156,7 @@ struct lightrec_cstate { struct lightrec_state { struct lightrec_registers regs; u32 temp_reg; + u32 curr_pc; u32 next_pc; uintptr_t wrapper_regs[NUM_TEMPS]; u8 in_delay_slot_n; @@ -360,4 +361,9 @@ get_delay_slot(const struct opcode *list, u16 i) return op_flag_no_ds(list[i].flags) ? &list[i - 1] : &list[i + 1]; } +static inline _Bool lightrec_store_next_pc(void) +{ + return NUM_REGS + NUM_TEMPS <= 4; +} + #endif /* __LIGHTREC_PRIVATE_H__ */