X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Flightrec-private.h;h=920008c2ebd46dfa2fb26ae24bd31a944422afb5;hb=8afce295870dc97704b0e9e1efe1801b6b56090d;hp=0df9f938bd8bc8dc9fad2a95b3935bdf3238032e;hpb=1f8c6be323aa8fad329e38682158197e822d27c1;p=pcsx_rearmed.git diff --git a/deps/lightrec/lightrec-private.h b/deps/lightrec/lightrec-private.h index 0df9f938..920008c2 100644 --- a/deps/lightrec/lightrec-private.h +++ b/deps/lightrec/lightrec-private.h @@ -23,7 +23,8 @@ #include #include -#define PC_FMT "PC 0x%08"PRIx32 +#define X32_FMT "0x%08"PRIx32 +#define PC_FMT "PC "X32_FMT #define ARRAY_SIZE(x) (sizeof(x) ? sizeof(x) / sizeof((x)[0]) : 0) @@ -176,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; @@ -201,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);