X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Flightrec-private.h;h=0df9f938bd8bc8dc9fad2a95b3935bdf3238032e;hb=refs%2Fheads%2Flibretro;hp=456d7af27dea8163d0af67574959bcd308535f4e;hpb=03b78a3bf48813202e01149ae0b3c5c1f01efb4c;p=pcsx_rearmed.git diff --git a/deps/lightrec/lightrec-private.h b/deps/lightrec/lightrec-private.h index 456d7af2..920008c2 100644 --- a/deps/lightrec/lightrec-private.h +++ b/deps/lightrec/lightrec-private.h @@ -20,6 +20,12 @@ #include #endif +#include +#include + +#define X32_FMT "0x%08"PRIx32 +#define PC_FMT "PC "X32_FMT + #define ARRAY_SIZE(x) (sizeof(x) ? sizeof(x) / sizeof((x)[0]) : 0) #define GENMASK(h, l) \ @@ -171,9 +177,9 @@ struct lightrec_state { u32 exit_flags; u32 old_cycle_counter; u32 cycles_per_op; + void *c_wrapper; struct block *dispatcher, *c_wrapper_block; void *c_wrappers[C_WRAPPERS_COUNT]; - void *wrappers_eps[C_WRAPPERS_COUNT]; struct blockcache *block_cache; struct recompiler *rec; struct lightrec_cstate *cstate; @@ -196,6 +202,9 @@ struct lightrec_state { void *code_lut[]; }; +#define lightrec_offset(ptr) \ + offsetof(struct lightrec_state, ptr) + u32 lightrec_rw(struct lightrec_state *state, union code op, u32 addr, u32 data, u32 *flags, struct block *block, u16 offset);